From 6e83eb0018d74685cddd32e76693c821a80a7696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Wed, 23 Feb 2011 09:06:20 +0000 Subject: [PATCH] set the language code in tests, tests expects English messages (closes #3084) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/BaseTypes/Bounds.html | 1 + tests/BaseTypes/LonLat.html | 1 + tests/BaseTypes/Pixel.html | 1 + tests/Control/Scale.html | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/BaseTypes/Bounds.html b/tests/BaseTypes/Bounds.html index 2e185f710c..abbba01b61 100644 --- a/tests/BaseTypes/Bounds.html +++ b/tests/BaseTypes/Bounds.html @@ -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"); diff --git a/tests/BaseTypes/LonLat.html b/tests/BaseTypes/LonLat.html index 0861be71d0..cc1cd5675c 100644 --- a/tests/BaseTypes/LonLat.html +++ b/tests/BaseTypes/LonLat.html @@ -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"); diff --git a/tests/BaseTypes/Pixel.html b/tests/BaseTypes/Pixel.html index 5f448dcd57..561549e2c6 100644 --- a/tests/BaseTypes/Pixel.html +++ b/tests/BaseTypes/Pixel.html @@ -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"); diff --git a/tests/Control/Scale.html b/tests/Control/Scale.html index 182e94cc66..804ceb5622 100644 --- a/tests/Control/Scale.html +++ b/tests/Control/Scale.html @@ -2,6 +2,7 @@