From 0e6b61c3522e21ed9f3853419b78af7e329f80f2 Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Wed, 24 May 2006 05:46:54 +0000 Subject: [PATCH] All tests now pass in IE. git-svn-id: http://svn.openlayers.org/trunk/openlayers@315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/run-tests.html | 3 +++ tests/test_Control_PanZoom.html | 4 ++-- tests/test_Events.html | 6 +++++- tests/test_Feature.html | 14 ++++++++++---- tests/test_Layer_Text.html | 6 +++++- tests/test_Layer_WMS.html | 6 +++++- tests/test_Map.html | 15 +++++++++++---- tests/test_Tile_Image.html | 6 +++++- tests/test_Util.html | 26 ++++++++++++++++++++------ 9 files changed, 66 insertions(+), 20 deletions(-) diff --git a/tests/run-tests.html b/tests/run-tests.html index 5e455dddb1..15967b0a4e 100644 --- a/tests/run-tests.html +++ b/tests/run-tests.html @@ -887,6 +887,9 @@ Test.AnotherWay._test_page_onload=function() script_text=script_text.substring( fun_start, script_text.length ); var fun_end=script_text.indexOf( '(' ); var fun_name=script_text.substring( "function ".length, fun_end ); + var whitespace = fun_name.indexOf( ' ' ); + if (whitespace >= 0) + fun_name = fun_name.substring( 0, whitespace ); test_page.test_objects.push( new Test.AnotherWay._test_object_t( fun_name ) ); script_text=script_text.substring( fun_end, script_text.length ); fun_start=script_text.indexOf( fun_sig ); diff --git a/tests/test_Control_PanZoom.html b/tests/test_Control_PanZoom.html index 5bd2593592..3fdd8b636e 100644 --- a/tests/test_Control_PanZoom.html +++ b/tests/test_Control_PanZoom.html @@ -18,8 +18,8 @@ map.addControl(control); t.ok( control.map === map, "Control.map is set to the map object" ); t.ok( map.controls[2] === control, "map.controls contains control" ); - t.eq( control.div.style.zIndex, "253", "Control div zIndexed properly" ); - t.eq( map.viewPortDiv.lastChild.style.zIndex, "253", "Viewport div contains control div" ); + t.eq( parseInt(control.div.style.zIndex), 253, "Control div zIndexed properly" ); + t.eq( parseInt(map.viewPortDiv.lastChild.style.zIndex), 253, "Viewport div contains control div" ); t.eq( control.div.style.top, "4px", "Control div top located correctly by default"); var control2 = new OpenLayers.Control.PanZoom(); diff --git a/tests/test_Events.html b/tests/test_Events.html index db947bac29..dc17dfd2ad 100644 --- a/tests/test_Events.html +++ b/tests/test_Events.html @@ -2,13 +2,17 @@