protect 2 Google test cases for validkey
This commit is contained in:
@@ -237,7 +237,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function test_setOpacity(t) {
|
function test_setOpacity(t) {
|
||||||
|
if(validkey) {
|
||||||
t.plan(6);
|
t.plan(6);
|
||||||
|
|
||||||
var map = new OpenLayers.Map("map");
|
var map = new OpenLayers.Map("map");
|
||||||
@@ -283,7 +283,11 @@
|
|||||||
t.ok(opacityCheck(0.5), "container opacity set to layer opacity");
|
t.ok(opacityCheck(0.5), "container opacity set to layer opacity");
|
||||||
|
|
||||||
map.destroy();
|
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) {
|
function test_Layer_Google_setGMapVisibility(t) {
|
||||||
@@ -322,6 +326,7 @@
|
|||||||
|
|
||||||
function test_sphericalMercator(t) {
|
function test_sphericalMercator(t) {
|
||||||
|
|
||||||
|
if (validkey) {
|
||||||
t.plan(4);
|
t.plan(4);
|
||||||
var map, layer;
|
var map, layer;
|
||||||
|
|
||||||
@@ -348,7 +353,11 @@
|
|||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
t.eq(map.getProjection(), "EPSG:102113", "custom code respected with sphericalMercator");
|
t.eq(map.getProjection(), "EPSG:102113", "custom code respected with sphericalMercator");
|
||||||
map.destroy();
|
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