protect 2 Google test cases for validkey
This commit is contained in:
+12
-3
@@ -237,7 +237,7 @@
|
||||
}
|
||||
|
||||
function test_setOpacity(t) {
|
||||
|
||||
if(validkey) {
|
||||
t.plan(6);
|
||||
|
||||
var map = new OpenLayers.Map("map");
|
||||
@@ -283,7 +283,11 @@
|
||||
t.ok(opacityCheck(0.5), "container opacity set to layer opacity");
|
||||
|
||||
map.destroy();
|
||||
|
||||
} else {
|
||||
t.plan(0);
|
||||
t.debug_print("Google tests can't be run from " +
|
||||
window.location.host);
|
||||
}
|
||||
}
|
||||
|
||||
function test_Layer_Google_setGMapVisibility(t) {
|
||||
@@ -322,6 +326,7 @@
|
||||
|
||||
function test_sphericalMercator(t) {
|
||||
|
||||
if (validkey) {
|
||||
t.plan(4);
|
||||
var map, layer;
|
||||
|
||||
@@ -348,7 +353,11 @@
|
||||
map.addLayer(layer);
|
||||
t.eq(map.getProjection(), "EPSG:102113", "custom code respected with sphericalMercator");
|
||||
map.destroy();
|
||||
|
||||
} else {
|
||||
t.plan(0);
|
||||
t.debug_print("Google tests can't be run from " +
|
||||
window.location.host);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user