Updated tests to match recent developments.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1183 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
}
|
||||
|
||||
function test_03_Layer_KaMap_clearTiles (t) {
|
||||
t.plan( 2 );
|
||||
t.plan( 1 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
|
||||
map.addLayer(layer);
|
||||
@@ -49,9 +49,6 @@
|
||||
layer.clearGrid();
|
||||
|
||||
t.ok( layer.grid != null, "layer.grid does not get nullified" );
|
||||
t.ok( (tile.layer == null) &&
|
||||
(tile.bounds == null) &&
|
||||
(tile.size == null), "tiles appropriately destroyed")
|
||||
}
|
||||
|
||||
|
||||
@@ -209,9 +206,7 @@
|
||||
|
||||
layer.destroy();
|
||||
|
||||
t.ok( (tile.layer == null) &&
|
||||
(tile.bounds == null) &&
|
||||
(tile.size == null), "tiles appropriately destroyed")
|
||||
t.ok( layer.grid == null, "tiles appropriately destroyed");
|
||||
}
|
||||
|
||||
// -->
|
||||
|
||||
Reference in New Issue
Block a user