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
This commit is contained in:
Éric Lemoine
2010-11-05 14:05:41 +00:00
parent a59266325b
commit 5924c75c9b

View File

@@ -88,8 +88,8 @@
} }
function test_Popup_keepInMap(t) { function test_Popup_keepInMap(t) {
var gb = OpenLayers.Util.getBrowserName; var bn = OpenLayers.BROWSER_NAME;
OpenLayers.Util.getBrowserName = function() { return "mock"; } OpenLayers.BROWSER_NAME = "mock";
t.plan(3); t.plan(3);
var map = new OpenLayers.Map("map"); var map = new OpenLayers.Map("map");
map.addLayer(new OpenLayers.Layer("", {isBaseLayer: true})); 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(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.w < safeSizePan.w, "Width of non-panning is less");
t.ok(safeSize.h < safeSizePan.h, "Height 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) { function test_Popup_draw(t) {
t.plan( 15 ); t.plan( 15 );