Skip to content

Commit

Permalink
in Popup.html mock BROWSER_NAME instead of Util.getBrowserName, non-f…
Browse files Browse the repository at this point in the history
…unctional change (closes #2919)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
Éric Lemoine committed Nov 5, 2010
1 parent a592663 commit 5924c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 5924c75

Please sign in to comment.