[OpenLayers-Commits] r11272 - in trunk/openlayers/tests: BaseTypes Control

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Feb 23 04:06:21 EST 2011


Author: fredj
Date: 2011-02-23 01:06:20 -0800 (Wed, 23 Feb 2011)
New Revision: 11272

Modified:
   trunk/openlayers/tests/BaseTypes/Bounds.html
   trunk/openlayers/tests/BaseTypes/LonLat.html
   trunk/openlayers/tests/BaseTypes/Pixel.html
   trunk/openlayers/tests/Control/Scale.html
Log:
set the language code in tests, tests expects English messages (closes #3084)

Modified: trunk/openlayers/tests/BaseTypes/Bounds.html
===================================================================
--- trunk/openlayers/tests/BaseTypes/Bounds.html	2011-02-23 08:56:39 UTC (rev 11271)
+++ trunk/openlayers/tests/BaseTypes/Bounds.html	2011-02-23 09:06:20 UTC (rev 11272)
@@ -606,6 +606,7 @@
         t.ok( bounds.equals(b), "bounds is set correctly");
         
     //null values
+        OpenLayers.Lang.setCode('en');
         var desiredMsg = "You must pass both x and y values to the add function.";
         OpenLayers.Console.error = function(msg) {
             t.eq(msg, desiredMsg, "error correctly reported");

Modified: trunk/openlayers/tests/BaseTypes/LonLat.html
===================================================================
--- trunk/openlayers/tests/BaseTypes/LonLat.html	2011-02-23 08:56:39 UTC (rev 11271)
+++ trunk/openlayers/tests/BaseTypes/LonLat.html	2011-02-23 09:06:20 UTC (rev 11272)
@@ -64,6 +64,7 @@
         t.ok( addpx.equals(ll), "addpx is set correctly");
         
     //null values
+        OpenLayers.Lang.setCode('en');
         var desiredMsg = "You must pass both lon and lat values to the add function.";
         OpenLayers.Console.error = function(msg) {
             t.eq(msg, desiredMsg, "error correctly reported");

Modified: trunk/openlayers/tests/BaseTypes/Pixel.html
===================================================================
--- trunk/openlayers/tests/BaseTypes/Pixel.html	2011-02-23 08:56:39 UTC (rev 11271)
+++ trunk/openlayers/tests/BaseTypes/Pixel.html	2011-02-23 09:06:20 UTC (rev 11272)
@@ -74,6 +74,7 @@
         t.ok( pixel.equals(px), "returned pixel is correct");
 
     //null values
+        OpenLayers.Lang.setCode('en');        
         var desiredMsg = "You must pass both x and y values to the add function.";
         OpenLayers.Console.error = function(msg) {
             t.eq(msg, desiredMsg, "error correctly reported");

Modified: trunk/openlayers/tests/Control/Scale.html
===================================================================
--- trunk/openlayers/tests/Control/Scale.html	2011-02-23 08:56:39 UTC (rev 11271)
+++ trunk/openlayers/tests/Control/Scale.html	2011-02-23 09:06:20 UTC (rev 11272)
@@ -2,6 +2,7 @@
 <head>
   <script src="../OLLoader.js"></script>
   <script type="text/javascript">
+    OpenLayers.Lang.setCode('en');
     var map; 
     function test_Control_Scale_constructor (t) {
         t.plan( 2 );



More information about the Commits mailing list