Tests for string methods without WKT.

This commit is contained in:
tschaub committed 2011-12-10 17:09:18 -07:00
1 parent 4c97f492c6
commit 469842012b
2 files changed
+17

No files matched your search

+2
View File
@@ -337,8 +337,10 @@
function test_fromWKT_undefined(t) {
t.plan(1);
var WKT = OpenLayers.Format.WKT;
OpenLayers.Format.WKT = null;
delete OpenLayers.Geometry.fromWKT.format;
var geom = OpenLayers.Geometry.fromWKT("POINT(1 1)");
t.eq(geom, undefined, "undefined when OpenLayers.Format.WKT is not available");