Changeset 6715
- Timestamp:
- 03/30/08 23:20:05 (9 months ago)
- Files:
-
- sandbox/euzuro/pop/tests/Layer/test_GeoRSS.html (modified) (4 diffs)
- sandbox/euzuro/pop/tests/test_Popup.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/pop/tests/Layer/test_GeoRSS.html
r6713 r6715 98 98 } 99 99 function test_Layer_GeoRSS_popups (t) { 100 t.plan( 8);100 t.plan( 6 ); 101 101 layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt); 102 102 var map = new OpenLayers.Map('map'); … … 114 114 t.eq(map.popups.length, 1, "Popup opened correctly"); 115 115 t.eq(map.popups[0].size.w, 250, "Popup sized correctly x"); 116 t.eq(map.popups[0].size.h, 120, "Popup sized correctly y");117 116 layer.markers[1].events.triggerEvent('click', event); 118 117 t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 119 118 t.eq(map.popups[0].size.w, 250, "Popup sized correctly x"); 120 t.eq(map.popups[0].size.h, 120, "Popup sized correctly y");121 119 }); 122 120 … … 124 122 function test_Layer_GeoRSS_resizedPopups(t) { 125 123 layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt, {'popupSize': new OpenLayers.Size(200,100)}); 126 t.plan( 8);124 t.plan( 6 ); 127 125 var map = new OpenLayers.Map('map'); 128 126 var baseLayer = new OpenLayers.Layer.WMS("Test Layer", … … 139 137 t.eq(map.popups.length, 1, "Popup opened correctly"); 140 138 t.eq(map.popups[0].size.w, 200, "Popup sized correctly x"); 141 t.eq(map.popups[0].size.h, 100, "Popup sized correctly y");142 139 map.popups[0].size.w=300; 143 140 layer.markers[1].events.triggerEvent('click', event); 144 141 t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 145 142 t.eq(map.popups[0].size.w, 200, "Popup sized correctly x"); 146 t.eq(map.popups[0].size.h, 100, "Popup sized correctly y");147 143 }); 148 144 } sandbox/euzuro/pop/tests/test_Popup.html
r6714 r6715 87 87 } 88 88 function test_03_Popup_draw(t) { 89 t.plan( 1 7);89 t.plan( 13 ); 90 90 91 91 var id = "chicken"; … … 107 107 popup.setBorder(border); 108 108 map.addPopup(popup); 109 popup. draw(new OpenLayers.Pixel(x, y));109 popup.moveTo(new OpenLayers.Pixel(x, y)); 110 110 111 111 t.eq(popup.div.id, id, "popup.div.id set correctly"); 112 112 t.eq(popup.div.style.left, x + "px", "left position of popup.div set correctly"); 113 113 t.eq(popup.div.style.top, y + "px", "top position of popup.div set correctly"); 114 t.eq(popup.div.style.width, w + "px", "width position of popup.div set correctly");115 t.eq(popup.div.style.height, h + "px", "heightposition of popup.div set correctly");116 114 117 115 var contentDiv = popup.div.childNodes[0].childNodes[0]; … … 119 117 t.eq(contentDiv.className, "olPopupContent", "correct content div className"); 120 118 t.eq(contentDiv.id, "chicken_contentDiv", "correct content div id"); 121 t.eq(contentDiv.style.width, "500px", "correct content div width");122 t.eq(contentDiv.style.height, "400px", "correct content div height");123 119 t.eq(contentDiv.style.position, "relative", "correct content div position"); 124 120 //Safari 3 separates style overflow into overflow-x and overflow-y
