move Layer.OSM in its own script file

This commit is contained in:
Éric Lemoine
2012-01-12 21:22:58 +01:00
parent 2d7fa6810a
commit 3cbd7b4b40
8 changed files with 66 additions and 42 deletions
+2 -8
View File
@@ -251,17 +251,11 @@
}
function test_clone(t) {
t.plan(2);
var clone;
t.plan(1);
layer = new OpenLayers.Layer.XYZ(name, url, options);
clone = layer.clone();
var clone = layer.clone();
t.ok(clone instanceof OpenLayers.Layer.XYZ, "clone is a Layer.XYZ instance");
layer = new OpenLayers.Layer.OSM();
clone = layer.clone();
t.ok(clone instanceof OpenLayers.Layer.OSM, "clone is a Layer.OSM instance");
}
</script>