Skip to content

Commit 11b3719

Browse files
author
Éric Lemoine
committed
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
1 parent fd23c27 commit 11b3719

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Popup.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
}
8989
function test_Popup_keepInMap(t) {
9090

91-
var gb = OpenLayers.Util.getBrowserName;
92-
OpenLayers.Util.getBrowserName = function() { return "mock"; }
91+
var bn = OpenLayers.BROWSER_NAME;
92+
OpenLayers.BROWSER_NAME = "mock";
9393
t.plan(3);
9494
var map = new OpenLayers.Map("map");
9595
map.addLayer(new OpenLayers.Layer("", {isBaseLayer: true}));
@@ -120,7 +120,7 @@
120120
t.ok(safeSizePan.equals(safeSizePanKeep), "Panning means that all sizes are equal");
121121
t.ok(safeSize.w < safeSizePan.w, "Width of non-panning is less");
122122
t.ok(safeSize.h < safeSizePan.h, "Height of non-panning is less");
123-
OpenLayers.Util.getBrowserName = gb;
123+
OpenLayers.BROWSER_NAME = bn;
124124
}
125125
function test_Popup_draw(t) {
126126
t.plan( 15 );

0 commit comments

Comments
 (0)