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
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user