diff --git a/tests/Layer/test_MapServer.html b/tests/Layer/test_MapServer.html index 2fead41855..a15b30818a 100644 --- a/tests/Layer/test_MapServer.html +++ b/tests/Layer/test_MapServer.html @@ -211,7 +211,10 @@ (window.location.host == "localhost") || (window.location.host == "openlayers.org"); - if(validkey) { + if (OpenLayers.Util.getBrowserName() == "opera") { + t.plan(1); + t.debug_print("Can't test google reprojection in Opera."); + } else if(validkey) { t.plan(5); var map = new OpenLayers.Map('map'); var layer = new OpenLayers.Layer.Google("Google"); diff --git a/tests/Layer/test_WMS.html b/tests/Layer/test_WMS.html index c547a68f39..41f9027b18 100644 --- a/tests/Layer/test_WMS.html +++ b/tests/Layer/test_WMS.html @@ -278,8 +278,10 @@ var validkey = (window.location.protocol == "file:") || (window.location.host == "localhost") || (window.location.host == "openlayers.org"); - - if(validkey) { + if (OpenLayers.Util.getBrowserName() == "opera") { + t.plan(1); + t.debug_print("Can't test google reprojection in Opera."); + } else if(validkey) { t.plan(5); var map = new OpenLayers.Map('map'); @@ -290,10 +292,9 @@ wmslayer.isBaseLayer=false; map.addLayer(wmslayer); map.setCenter(new OpenLayers.LonLat(0,0), 5); - var tile = wmslayer.grid[0][0]; t.eq( tile.bounds.left, -22.5, "left side matches" ); - t.eq( tile.bounds.right, -11.25, "top side matches" ); + t.eq( tile.bounds.right, -11.25, "right side matches" ); t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" ); t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" ); map.destroy();