Fewer characters to read. No functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_Layer_Markers_constructor (t) {
|
||||
function test_initialize(t) {
|
||||
t.plan( 2 );
|
||||
|
||||
layer = new OpenLayers.Layer.Markers('Test Layer');
|
||||
t.ok( layer instanceof OpenLayers.Layer.Markers, "new OpenLayers.Layer.Markers returns object" );
|
||||
t.eq( layer.name, "Test Layer", "layer.name is correct" );
|
||||
}
|
||||
function test_Layer_Markers_addlayer (t) {
|
||||
function test_addlayer (t) {
|
||||
t.plan( 3 );
|
||||
|
||||
layer = new OpenLayers.Layer.Markers('Test Layer');
|
||||
@@ -22,7 +22,7 @@
|
||||
);
|
||||
t.eq( layer.markers.length, 1, "addLayer adds marker to layer." );
|
||||
}
|
||||
function test_Layer_Markers_addMarker_removeMarker (t) {
|
||||
function test_addMarker_removeMarker (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_Layer_Markers_destroy (t) {
|
||||
function test_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer.Markers('Test Layer');
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -56,7 +56,7 @@
|
||||
t.eq( layer.map, null, "layer.map is null after destroy" );
|
||||
}
|
||||
|
||||
function test_Layer_Markers_getDataExtent(t) {
|
||||
function test_getDataExtent(t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var layer = {};
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_Layer_Markers_setOpacity(t) {
|
||||
function test_setOpacity(t) {
|
||||
t.plan(1);
|
||||
|
||||
layer = new OpenLayers.Layer.Markers('Test Layer');
|
||||
|
||||
Reference in New Issue
Block a user