From e25af34f36963e58e64e5d3e70c0af819f76bf64 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 2 Jan 2007 23:57:02 +0000 Subject: [PATCH] fix popup test in opera -- color gets converted from string to hex git-svn-id: http://svn.openlayers.org/trunk/openlayers@2122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Popup.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_Popup.html b/tests/test_Popup.html index 95b7ce5279..ab31a4b319 100644 --- a/tests/test_Popup.html +++ b/tests/test_Popup.html @@ -61,6 +61,7 @@ var h = 400; var content = "charlie"; var color = "red"; + var hexColor = "#ff0000"; var opacity = 0.5; var border = "1px solid"; @@ -89,7 +90,9 @@ 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"); + var bColor = popup.div.style.backgroundColor; + var goodColor = ( (bColor == color) || (bColor == hexColor)); + t.ok(goodColor, "good default popup.backgroundColor"); if (navigator.appName.indexOf("Microsoft") == -1) { t.eq(parseFloat(popup.div.style.opacity), opacity, "good default popup.opacity");