From 5924c75c9badf1342858e7197af0db0ecd07d9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 5 Nov 2010 14:05:41 +0000 Subject: [PATCH] in Popup.html mock BROWSER_NAME instead of Util.getBrowserName, non-functional change (closes #2919) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Popup.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Popup.html b/tests/Popup.html index 8d82409e19..920a763506 100644 --- a/tests/Popup.html +++ b/tests/Popup.html @@ -88,8 +88,8 @@ } function test_Popup_keepInMap(t) { - var gb = OpenLayers.Util.getBrowserName; - OpenLayers.Util.getBrowserName = function() { return "mock"; } + var bn = OpenLayers.BROWSER_NAME; + OpenLayers.BROWSER_NAME = "mock"; t.plan(3); var map = new OpenLayers.Map("map"); map.addLayer(new OpenLayers.Layer("", {isBaseLayer: true})); @@ -120,7 +120,7 @@ t.ok(safeSizePan.equals(safeSizePanKeep), "Panning means that all sizes are equal"); t.ok(safeSize.w < safeSizePan.w, "Width of non-panning is less"); t.ok(safeSize.h < safeSizePan.h, "Height of non-panning is less"); - OpenLayers.Util.getBrowserName = gb; + OpenLayers.BROWSER_NAME = bn; } function test_Popup_draw(t) { t.plan( 15 );