Changeset 6717
- Timestamp:
- 03/31/08 00:04:24 (9 months ago)
- Files:
-
- sandbox/euzuro/pop/tests/Layer/test_GeoRSS.html (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/tests/Layer/test_GeoRSS.html
r6715 r6717 98 98 } 99 99 function test_Layer_GeoRSS_popups (t) { 100 t.plan( 6);100 t.plan( 4 ); 101 101 layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt); 102 102 var map = new OpenLayers.Map('map'); … … 113 113 layer.markers[0].events.triggerEvent('click', event); 114 114 t.eq(map.popups.length, 1, "Popup opened correctly"); 115 t.eq(map.popups[0].size.w, 250, "Popup sized correctly x");116 115 layer.markers[1].events.triggerEvent('click', event); 117 116 t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 118 t.eq(map.popups[0].size.w, 250, "Popup sized correctly x");119 117 }); 120 118 … … 122 120 function test_Layer_GeoRSS_resizedPopups(t) { 123 121 layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt, {'popupSize': new OpenLayers.Size(200,100)}); 124 t.plan( 6);122 t.plan( 4 ); 125 123 var map = new OpenLayers.Map('map'); 126 124 var baseLayer = new OpenLayers.Layer.WMS("Test Layer", … … 136 134 layer.markers[0].events.triggerEvent('click', event); 137 135 t.eq(map.popups.length, 1, "Popup opened correctly"); 138 t.eq(map.popups[0].size.w, 200, "Popup sized correctly x");139 136 map.popups[0].size.w=300; 140 137 layer.markers[1].events.triggerEvent('click', event); 141 138 t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 142 t.eq(map.popups[0].size.w, 200, "Popup sized correctly x");143 139 }); 144 140 }
