[OpenLayers-Commits] r10872 - trunk/openlayers/tests

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Fri Nov 5 10:05:42 EDT 2010


Author: erilem
Date: 2010-11-05 07:05:41 -0700 (Fri, 05 Nov 2010)
New Revision: 10872

Modified:
   trunk/openlayers/tests/Popup.html
Log:
in Popup.html mock BROWSER_NAME instead of Util.getBrowserName, non-functional change (closes #2919)

Modified: trunk/openlayers/tests/Popup.html
===================================================================
--- trunk/openlayers/tests/Popup.html	2010-11-05 12:44:38 UTC (rev 10871)
+++ trunk/openlayers/tests/Popup.html	2010-11-05 14:05:41 UTC (rev 10872)
@@ -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 );



More information about the Commits mailing list