[OpenLayers-Commits] r10918 - trunk/openlayers/tests/Popup

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Nov 24 15:03:00 EST 2010


Author: erilem
Date: 2010-11-24 12:03:00 -0800 (Wed, 24 Nov 2010)
New Revision: 10918

Modified:
   trunk/openlayers/tests/Popup/Anchored.html
Log:
do not rely on Function.prototype.startsWith, use OpenLayers.String.startsWith, non-functional change

Modified: trunk/openlayers/tests/Popup/Anchored.html
===================================================================
--- trunk/openlayers/tests/Popup/Anchored.html	2010-11-24 10:44:01 UTC (rev 10917)
+++ trunk/openlayers/tests/Popup/Anchored.html	2010-11-24 20:03:00 UTC (rev 10918)
@@ -11,7 +11,7 @@
         popup = new OpenLayers.Popup.Anchored();
 
         t.ok( popup instanceof OpenLayers.Popup.Anchored, "new OpenLayers.Popup.Anchored returns Popup.Anchored object" );
-        t.ok(popup.id.startsWith("OpenLayers.Popup.Anchored"), "valid default popupid");
+        t.ok(OpenLayers.String.startsWith(popup.id, "OpenLayers.Popup.Anchored"), "valid default popupid");
         var firstID = popup.id;
         t.eq(popup.contentHTML, null, "good default popup.contentHTML");
 



More information about the Commits mailing list