The getFeatureFromEvent method now throws (see #7).

This commit is contained in:
tschaub
2011-10-11 09:36:43 -06:00
parent c6e66a3c5c
commit fc5a0121e6

View File

@@ -66,7 +66,7 @@
t.eq(layer.map.layers.length, 1, "layer added to the map successfully");
layer.destroy();
t.eq(layer.map, null, "layer.map is null after destroy");
t.eq(layer.getFeatureFromEvent({'target':'map'}), null, "getFeatureIdFromEvent doesn't cause an error when called on layer which has been destroyed.");
t.ok(!layer.renderer, "layer.renderer is falsey after destroy");
}