From 6bf55d5a433a3740d9b6de737c2b44c012da1563 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 8 Nov 2006 19:03:30 +0000 Subject: [PATCH] committing changes to testing code, as brought up from trunk r1781-r1783 git-svn-id: http://svn.openlayers.org/branches/openlayers/2.2@1784 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Layer_EventPane.html | 2 +- tests/test_Popup.html | 14 ++++++++++++-- tests/test_Tile_Image.html | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/test_Layer_EventPane.html b/tests/test_Layer_EventPane.html index 0344167e65..fc100d63fd 100644 --- a/tests/test_Layer_EventPane.html +++ b/tests/test_Layer_EventPane.html @@ -108,6 +108,6 @@ -
+
diff --git a/tests/test_Popup.html b/tests/test_Popup.html index 9185bdd270..7ee292015f 100644 --- a/tests/test_Popup.html +++ b/tests/test_Popup.html @@ -52,7 +52,7 @@ function test_03_Popup_draw(t) { - t.plan( 11 ); + t.plan( 17 ); var id = "chicken"; var x = 50; @@ -78,7 +78,17 @@ t.eq(popup.div.style.top, y + "px", "top position of popup.div set correctly"); t.eq(popup.div.style.width, w + "px", "width position of popup.div set correctly"); t.eq(popup.div.style.height, h + "px", "heightposition of popup.div set correctly"); - t.eq(popup.div.innerHTML, '
charlie
', "good default popup.contentHTML"); + + var contentDiv = popup.div.childNodes[0]; + + t.eq(contentDiv.className, "olPopupContent", "correct content div className"); + t.eq(contentDiv.id, "chicken_contentDiv", "correct content div id"); + t.eq(contentDiv.style.width, "200px", "correct content div width"); + t.eq(contentDiv.style.height, "200px", "correct content div height"); + t.eq(contentDiv.style.position, "relative", "correct content div position"); + t.eq(contentDiv.style.overflow, "hidden", "correct content div overflow"); + t.eq(contentDiv.innerHTML, content, "correct content div content"); + t.eq(popup.div.style.backgroundColor, color, "good default popup.backgroundColor"); if (navigator.appName.indexOf("Microsoft") == -1) { diff --git a/tests/test_Tile_Image.html b/tests/test_Tile_Image.html index e6e033aae0..f1914f7cdc 100644 --- a/tests/test_Tile_Image.html +++ b/tests/test_Tile_Image.html @@ -127,7 +127,7 @@ -
+