Create "Marker" layer. Add appropriate tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<li>test_Bounds.html</li>
|
||||
<li>test_Events.html</li>
|
||||
<li>test_Layer.html</li>
|
||||
<li>test_Layer_Marker.html</li>
|
||||
<li>test_Tile.html</li>
|
||||
<li>test_Tile_Image.html</li>
|
||||
<li>test_Control.html</li>
|
||||
|
||||
26
tests/test_Layer_Marker.html
Normal file
26
tests/test_Layer_Marker.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="../lib/OpenLayers.js"></script>
|
||||
<script type="text/javascript"><!--
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_Marker_constructor (t) {
|
||||
t.plan( 2 );
|
||||
|
||||
layer = new OpenLayers.Layer.Marker('Test Layer');
|
||||
t.ok( layer instanceof OpenLayers.Layer.Marker, "new OpenLayers.Layer.Marker returns object" );
|
||||
t.eq( layer.name, "Test Layer", "layer.name is correct" );
|
||||
}
|
||||
|
||||
function test_99_Layer_Marker_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer.Marker('Test Layer');
|
||||
layer.destroy();
|
||||
t.eq( layer.map, null, "layer.map is null after destroy" );
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user