From 9f0b0e0ed74b24f4e8ccec6b27869c4a2a32a117 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 22 Aug 2006 18:56:12 +0000 Subject: [PATCH] A number of tests were not working as expected in IE. Specifically: * Layer-KaMap, Grid, and Map were all having commented out tests run by Test.AnotherWay. * Layer.html was adding an additional , after a list in an object creation, which IE doesn't allow. * When setting the href="" of an element, IE does not then return the concatanation of the location+href via the DOM. * EventPane has mouse handling tests which work in IE, but not in FF. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_Permalink.html | 6 +++++- tests/test_Layer.html | 2 +- tests/test_Layer_EventPane.html | 6 +++++- tests/test_Layer_Grid.html | 6 +++--- tests/test_Layer_KaMap.html | 6 +++--- tests/test_Map.html | 2 +- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/tests/test_Control_Permalink.html b/tests/test_Control_Permalink.html index 1d7f64a338..d98fd532a8 100644 --- a/tests/test_Control_Permalink.html +++ b/tests/test_Control_Permalink.html @@ -20,7 +20,11 @@ if (!map.getCenter()) map.zoomToMaxExtent(); map.addControl(control); map.pan(5, 0); - t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); + if (/MSIE/.test(navigator.userAgent)) { + t.eq($('permalink').href, "?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); + } else { + t.eq($('permalink').href, location+"?lat=0&lon=1.75781&zoom=2", "Panning sets permalink"); + } } function test_03_Control_Permalink_updateLinksBase (t) { t.plan( 2 ); diff --git a/tests/test_Layer.html b/tests/test_Layer.html index 8b17d8b2bb..f473cee5dd 100644 --- a/tests/test_Layer.html +++ b/tests/test_Layer.html @@ -99,7 +99,7 @@ var options = { projection: projection, maxExtent: maxExtent, maxResolution: maxResolution, - numZoomLevels: numZoomLevels, + numZoomLevels: numZoomLevels }; var layer = new OpenLayers.Layer('Test Layer', options); diff --git a/tests/test_Layer_EventPane.html b/tests/test_Layer_EventPane.html index 71cc8a8151..d1d5f1f6e9 100644 --- a/tests/test_Layer_EventPane.html +++ b/tests/test_Layer_EventPane.html @@ -56,7 +56,11 @@ // MOUSEMOVE test does not seem to work... // t.plan( 2 ); - t.plan(1); + if (document.createEventObject) { + t.plan(3); + } else { + t.plan(1); + } var map = new OpenLayers.Map('map'); layer = new OpenLayers.Layer.EventPane('Test Layer'); diff --git a/tests/test_Layer_Grid.html b/tests/test_Layer_Grid.html index 5962ffb1bd..0e57706646 100644 --- a/tests/test_Layer_Grid.html +++ b/tests/test_Layer_Grid.html @@ -114,13 +114,13 @@ * -insertColumn * -insertRow - function test_07_Layer_Grid_moveTo(t) { + function 07_Layer_Grid_moveTo(t) { } - function test_08_Layer_Grid_insertColumn(t) { + function 08_Layer_Grid_insertColumn(t) { } - function test_09_Layer_Grid_insertRow(t) { + function 09_Layer_Grid_insertRow(t) { } * diff --git a/tests/test_Layer_KaMap.html b/tests/test_Layer_KaMap.html index 9a37a77891..ce310d9e67 100644 --- a/tests/test_Layer_KaMap.html +++ b/tests/test_Layer_KaMap.html @@ -107,13 +107,13 @@ * -insertColumn * -insertRow - function test_07_Layer_KaMap_moveTo(t) { + function 07_Layer_KaMap_moveTo(t) { } - function test_08_Layer_KaMap_insertColumn(t) { + function 08_Layer_KaMap_insertColumn(t) { } - function test_09_Layer_KaMap_insertRow(t) { + function 09_Layer_KaMap_insertRow(t) { } * diff --git a/tests/test_Map.html b/tests/test_Map.html index 2cc49f35ee..314453e065 100644 --- a/tests/test_Map.html +++ b/tests/test_Map.html @@ -154,7 +154,7 @@ /*** THIS IS A GOOD TEST, BUT IT SHOULD BE MOVED TO WMS. * Also, it won't work until we figure out the viewSize bug - function test_08_Map_px_lonlat_translation (t) { + function 08_Map_px_lonlat_translation (t) { t.plan( 6 ); map = new OpenLayers.Map($('map')); var baseLayer = new OpenLayers.Layer.WMS("Test Layer",