From 964f777e64c683b231d7067b3a46e918da557a27 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 3 Oct 2006 18:55:05 +0000 Subject: [PATCH] Different browsers de-innerHTMLize differently. Just look for the words. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1548 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_LayerSwitcher.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_Control_LayerSwitcher.html b/tests/test_Control_LayerSwitcher.html index 3aafa187d6..3ee7e9240d 100644 --- a/tests/test_Control_LayerSwitcher.html +++ b/tests/test_Control_LayerSwitcher.html @@ -98,10 +98,10 @@ map.addControl(control); control2 = new OpenLayers.Control.LayerSwitcher({'ascending':false}); map.addControl(control2); - t.eq(control.div.childNodes[1].childNodes[0].innerHTML, "Base Layer", "Base Layers first in LayerSwitcher with ascending true"); - t.eq(control.div.childNodes[1].childNodes[2].innerHTML, "Overlays", "Overlays in LayerSwitcher with ascending true"); - t.eq(control2.div.childNodes[1].childNodes[2].innerHTML, "Base Layer", "Base Layers last in LayerSwitcher with ascending false"); - t.eq(control2.div.childNodes[1].childNodes[0].innerHTML, "Overlays", "Base Layers last in LayerSwitcher with ascending false"); + t.ok(control.div.childNodes[1].childNodes[0].innerHTML.match("Base Layer"), "Base Layers first in LayerSwitcher with ascending true"); + t.ok(control.div.childNodes[1].childNodes[2].innerHTML.match("Overlays"), "Overlays in LayerSwitcher with ascending true"); + t.ok(control2.div.childNodes[1].childNodes[2].innerHTML.match("Base Layer"), "Base Layers last in LayerSwitcher with ascending false"); + t.ok(control2.div.childNodes[1].childNodes[0].innerHTML.match("Overlays"), "Base Layers last in LayerSwitcher with ascending false"); }