fix up tests, remove _01_. (Closes #1387)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6724 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_EventPane_constructor (t) {
|
||||
function test_Layer_EventPane_constructor (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var layer = new OpenLayers.Layer.EventPane('Test Layer');
|
||||
@@ -22,7 +22,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_02_Layer_EventPane_clone (t) {
|
||||
function test_Layer_EventPane_clone (t) {
|
||||
t.plan( 1 );
|
||||
t.ok( true, "need to actually write some tests here" );
|
||||
return;
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_10_Layer_EventPane_setMap (t) {
|
||||
function test_Layer_EventPane_setMap (t) {
|
||||
|
||||
// MOUSEMOVE test does not seem to work...
|
||||
// t.plan( 2 );
|
||||
@@ -97,7 +97,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_20_Layer_EventPane_setVisibility (t) {
|
||||
function test_Layer_EventPane_setVisibility (t) {
|
||||
t.plan( 2 );
|
||||
layer = new OpenLayers.Layer.EventPane('Test Layer');
|
||||
layer.setVisibility(false);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_FixedZoomLevels (t) {
|
||||
function test_Layer_FixedZoomLevels (t) {
|
||||
t.plan( 39 );
|
||||
|
||||
var layer = { 'MIN_ZOOM_LEVEL': 5,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
gml2 = "." + gml2;
|
||||
}
|
||||
|
||||
function test_01_Layer_GML_constructor(t) {
|
||||
function test_Layer_GML_constructor(t) {
|
||||
t.plan(3);
|
||||
|
||||
var layer = new OpenLayers.Layer.GML(name);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
atom_xml = "." + atom_xml;
|
||||
}
|
||||
|
||||
function test_01_Layer_GeoRSS_constructor (t) {
|
||||
function test_Layer_GeoRSS_constructor (t) {
|
||||
t.plan( 5 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt );
|
||||
t.ok( layer instanceof OpenLayers.Layer.GeoRSS, "new OpenLayers.Layer.GeoRSS returns object" );
|
||||
@@ -38,7 +38,7 @@
|
||||
} );
|
||||
}
|
||||
|
||||
function test_01_Layer_GeoRSS_AtomParsing (t) {
|
||||
function test_Layer_GeoRSS_AtomParsing (t) {
|
||||
t.plan( 6 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', atom_xml );
|
||||
t.ok( layer instanceof OpenLayers.Layer.GeoRSS, "new OpenLayers.Layer.GeoRSS returns object" );
|
||||
@@ -54,7 +54,7 @@
|
||||
} );
|
||||
}
|
||||
|
||||
function test_02_Layer_GeoRSS_draw (t) {
|
||||
function test_Layer_GeoRSS_draw (t) {
|
||||
// t.plan(5);
|
||||
t.plan( 2 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt);
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
});;
|
||||
}
|
||||
function test_03_Layer_GeoRSS_events (t) {
|
||||
function test_Layer_GeoRSS_events (t) {
|
||||
t.plan( 4 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt);
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -142,7 +142,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
function test_04_Layer_GeoRSS_icon(t) {
|
||||
function test_Layer_GeoRSS_icon(t) {
|
||||
t.plan( 3 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt);
|
||||
var the_icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png');
|
||||
@@ -183,7 +183,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_99_Layer_GeoRSS_destroy (t) {
|
||||
function test_Layer_GeoRSS_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt);
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_01_Layer_Google_constructor (t) {
|
||||
function test_Layer_Google_constructor (t) {
|
||||
if(validkey) {
|
||||
t.plan( 4 );
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_02_Layer_Google_isBaseLayer (t) {
|
||||
function test_Layer_Google_isBaseLayer (t) {
|
||||
if(validkey) {
|
||||
t.plan(1);
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_03_Layer_Google_Translation_lonlat (t) {
|
||||
function test_Layer_Google_Translation_lonlat (t) {
|
||||
|
||||
if(validkey) {
|
||||
t.plan( 4 );
|
||||
@@ -114,7 +114,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_04_Layer_Google_Translation_pixel (t) {
|
||||
function test_Layer_Google_Translation_pixel (t) {
|
||||
if(validkey) {
|
||||
t.plan( 4 );
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function test_99_Layer_destroy (t) {
|
||||
function test_Layer_destroy (t) {
|
||||
if(validkey) {
|
||||
t.plan( 5 );
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
window.location.host);
|
||||
}
|
||||
}
|
||||
function test_02_Layer_Google_isBaseLayer (t) {
|
||||
function test_Layer_Google_isBaseLayer (t) {
|
||||
if(validkey) {
|
||||
t.plan(3);
|
||||
var map = new OpenLayers.Map( 'map' ,
|
||||
|
||||
+15
-15
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
|
||||
function test_01_Layer_Grid_constructor (t) {
|
||||
function test_Layer_Grid_constructor (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
layer = new OpenLayers.Layer.Grid(name, url, params, null);
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_02_Layer_Grid_inittiles (t) {
|
||||
function test_Layer_Grid_inittiles (t) {
|
||||
t.plan( 2 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.WMS(name, url, params);
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_03_Layer_Grid_clearTiles (t) {
|
||||
function test_Layer_Grid_clearTiles (t) {
|
||||
t.plan(3);
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -90,7 +90,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_Grid_getTilesBounds(t) {
|
||||
function test_Layer_Grid_getTilesBounds(t) {
|
||||
t.plan( 4 );
|
||||
|
||||
layer = new OpenLayers.Layer.WMS(name, url, params);
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_05_Layer_Grid_getResolution(t) {
|
||||
function test_Layer_Grid_getResolution(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -139,7 +139,7 @@
|
||||
t.eq( layer.getResolution(), 0.0439453125, "getResolution() returns correct value");
|
||||
}
|
||||
|
||||
function test_06_Layer_Grid_getZoomForExtent(t) {
|
||||
function test_Layer_Grid_getZoomForExtent(t) {
|
||||
t.plan( 2 );
|
||||
var bounds, zoom;
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
t.eq( zoom, 2, "getZoomForExtent() returns correct value");
|
||||
}
|
||||
|
||||
function test_07_Layer_Grid_moveTo(t) {
|
||||
function test_Layer_Grid_moveTo(t) {
|
||||
|
||||
t.plan(13);
|
||||
|
||||
@@ -316,7 +316,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
function test_10_Layer_Grid_clone(t) {
|
||||
function test_Layer_Grid_clone(t) {
|
||||
t.plan(5);
|
||||
|
||||
var options = {tileSize: new OpenLayers.Size(500,50)};
|
||||
@@ -343,7 +343,7 @@
|
||||
layer.grid = null;
|
||||
}
|
||||
|
||||
function test_11_Layer_Grid_setTileSize(t) {
|
||||
function test_Layer_Grid_setTileSize(t) {
|
||||
t.plan(1);
|
||||
|
||||
OpenLayers.Layer.HTTPRequest.prototype._setTileSize =
|
||||
@@ -372,7 +372,7 @@
|
||||
OpenLayers.Layer.HTTPRequest.prototype._setTileSize;
|
||||
}
|
||||
|
||||
function test_12_Layer_Grid_initSingleTile(t) {
|
||||
function test_Layer_Grid_initSingleTile(t) {
|
||||
t.plan( 11 );
|
||||
|
||||
layer = new OpenLayers.Layer.Grid(name, url, params, {
|
||||
@@ -427,7 +427,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_14_Layer_Grid_addTileMonitoringHooks(t) {
|
||||
function test_Layer_Grid_addTileMonitoringHooks(t) {
|
||||
t.plan(14);
|
||||
|
||||
layer = new OpenLayers.Layer.Grid();
|
||||
@@ -488,7 +488,7 @@
|
||||
t.eq(layer.numLoadingTiles, 0, "numLoadingTiles decremented");
|
||||
}
|
||||
|
||||
function test_15_Layer_Grid_removeTileMonitoringHooks(t) {
|
||||
function test_Layer_Grid_removeTileMonitoringHooks(t) {
|
||||
t.plan(2);
|
||||
|
||||
layer = new OpenLayers.Layer.Grid();
|
||||
@@ -516,7 +516,7 @@
|
||||
t.ok( entry && entry[0] == layer && entry[1] == tile.onLoadEnd, "loadend correctly unregistered");
|
||||
}
|
||||
|
||||
function test_16_Layer_Grid_tileSizeIsInteger(t) {
|
||||
function test_Layer_Grid_tileSizeIsInteger(t) {
|
||||
t.plan(1);
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -530,7 +530,7 @@
|
||||
height = layer.tileSize.h;
|
||||
t.ok(width == parseInt(width) && height == parseInt(height), "calculated tileSize width/height are integer values");
|
||||
}
|
||||
function test_12_Layer_Grid_getTileBounds(t) {
|
||||
function test_Layer_Grid_getTileBounds(t) {
|
||||
t.plan(2);
|
||||
var map = new OpenLayers.Map("map2");
|
||||
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -584,7 +584,7 @@
|
||||
t.eq( layer2.grid.length, 6, "Grid rows with buffer:2" );
|
||||
}
|
||||
|
||||
function test_99_Layer_Grid_destroy (t) {
|
||||
function test_Layer_Grid_destroy (t) {
|
||||
|
||||
t.plan( 5 );
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
format: 'image/png'};
|
||||
var options = { chicken: 151, foo: "bar" };
|
||||
|
||||
function test_01_Layer_HTTPRequest_constructor (t) {
|
||||
function test_Layer_HTTPRequest_constructor (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_02_Layer_HTTPRequest_clone (t) {
|
||||
function test_Layer_HTTPRequest_clone (t) {
|
||||
t.plan( 6 );
|
||||
|
||||
var toClone = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_03_Layer_HTTPRequest_setUrl (t) {
|
||||
function test_Layer_HTTPRequest_setUrl (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
||||
@@ -64,7 +64,7 @@
|
||||
t.eq( layer.url, "foo", "setUrl() works");
|
||||
}
|
||||
|
||||
function test_05_Layer_HTTPRequest_mergeNewParams (t) {
|
||||
function test_Layer_HTTPRequest_mergeNewParams (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_06_Layer_HTTPRequest_getFullRequestString (t) {
|
||||
function test_Layer_HTTPRequest_getFullRequestString (t) {
|
||||
|
||||
tParams = { layers: 'basic',
|
||||
format: 'image/png'};
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_04_Layer_HTTPRequest_selectUrl (t) {
|
||||
function test_Layer_HTTPRequest_selectUrl (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
||||
@@ -181,7 +181,7 @@
|
||||
t.eq( layer.selectUrl("bbox=0,0,180,90", urls), "wms4", "selectUrl(90,180) returns 2" );
|
||||
}
|
||||
|
||||
function test_99_Layer_HTTPRequest_destroy (t) {
|
||||
function test_Layer_HTTPRequest_destroy (t) {
|
||||
t.plan( 6 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_Image_constructor (t) {
|
||||
function test_Layer_Image_constructor (t) {
|
||||
t.plan( 13 );
|
||||
|
||||
var options = { chicken: 151, foo: "bar", projection: "none" };
|
||||
@@ -38,7 +38,7 @@
|
||||
t.ok( layer.options instanceof Object, "layer.options correctly initialized as a non-null Object" );
|
||||
}
|
||||
|
||||
function test_50_Layer_Image_tileTests (t) {
|
||||
function test_Layer_Image_tileTests (t) {
|
||||
t.plan(7);
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
*/
|
||||
|
||||
|
||||
function test_99_Layer_Image_destroy_before_use (t) {
|
||||
function test_Layer_Image_destroy_before_use (t) {
|
||||
t.plan(1);
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.Image('Test', 'http://earthtrends.wri.org/images/maps/4_m_citylights_lg.gif', new OpenLayers.Bounds(-180, -88.759, 180, 88.759), new OpenLayers.Size(580, 288));
|
||||
@@ -86,7 +86,7 @@
|
||||
t.ok(true, "destroy() didn't throw an error");
|
||||
}
|
||||
|
||||
function test_99_Layer_Image_destroy (t) {
|
||||
function test_Layer_Image_destroy (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
+11
-11
@@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
|
||||
function test_01_Layer_KaMap_constructor (t) {
|
||||
function test_Layer_KaMap_constructor (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
|
||||
@@ -59,7 +59,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_02_Layer_KaMap_inittiles (t) {
|
||||
function test_Layer_KaMap_inittiles (t) {
|
||||
t.plan( 2 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_03_Layer_KaMap_clearTiles (t) {
|
||||
function test_Layer_KaMap_clearTiles (t) {
|
||||
t.plan( 1 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
|
||||
@@ -89,7 +89,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_KaMap_getKaMapBounds(t) {
|
||||
function test_Layer_KaMap_getKaMapBounds(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
layer = new OpenLayers.Layer.KaMap(name, url, params, units);
|
||||
@@ -108,7 +108,7 @@
|
||||
layer.grid = null;
|
||||
}
|
||||
|
||||
function test_05_Layer_KaMap_getResolution(t) {
|
||||
function test_Layer_KaMap_getResolution(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -121,7 +121,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_06_Layer_KaMap_getZoomForExtent(t) {
|
||||
function test_Layer_KaMap_getZoomForExtent(t) {
|
||||
t.plan( 2 );
|
||||
var bounds, zoom;
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_06_Layer_kaMap_mergeNewParams (t) {
|
||||
function test_Layer_kaMap_mergeNewParams (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map("map");
|
||||
@@ -187,7 +187,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
function test_10_Layer_KaMap_clone(t) {
|
||||
function test_Layer_KaMap_clone(t) {
|
||||
t.plan(5);
|
||||
|
||||
var options = {tileSize: new OpenLayers.Size(500,50)};
|
||||
@@ -216,7 +216,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_11_Layer_KaMap_setMap(t) {
|
||||
function test_Layer_KaMap_setMap(t) {
|
||||
|
||||
t.plan(2);
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
t.ok( (layer.tileSize.h == 50) && (layer.tileSize.w == 500), "tileSize has been set correctly");
|
||||
map.destroy();
|
||||
}
|
||||
function test_12_Layer_KaMap_getTileBounds(t) {
|
||||
function test_Layer_KaMap_getTileBounds(t) {
|
||||
t.plan(2);
|
||||
var map = new OpenLayers.Map("map");
|
||||
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -251,7 +251,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_99_Layer_KaMap_destroy (t) {
|
||||
function test_Layer_KaMap_destroy (t) {
|
||||
|
||||
t.plan( 3 );
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
mapdefinition: 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition'
|
||||
};
|
||||
|
||||
function test_01_Layer_MapGuide_untiled_constructor (t) {
|
||||
function test_Layer_MapGuide_untiled_constructor (t) {
|
||||
t.plan( 8 );
|
||||
|
||||
var trans_format = "image/png";
|
||||
@@ -47,7 +47,7 @@
|
||||
t.eq(layer6.isBaseLayer, true, "transparency == false, wms is baselayer");
|
||||
}
|
||||
|
||||
function test_02_Layer_MapGuide_tiled_constructor (t) {
|
||||
function test_Layer_MapGuide_tiled_constructor (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var trans_format = "image/png";
|
||||
@@ -63,7 +63,7 @@
|
||||
t.eq( layer.params.version, "1.2.0", "version params set correctly set");
|
||||
}
|
||||
|
||||
function test_03_Layer_MapGuide_inittiles (t) {
|
||||
function test_Layer_MapGuide_inittiles (t) {
|
||||
t.plan( 1 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.MapGuide(name, url, paramsTiled);
|
||||
@@ -75,7 +75,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_MapGuide_clone (t) {
|
||||
function test_Layer_MapGuide_clone (t) {
|
||||
t.plan(4);
|
||||
|
||||
var options = {tileSize: new OpenLayers.Size(500,50)};
|
||||
@@ -101,7 +101,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_05_Layer_MapGuide_isBaseLayer(t) {
|
||||
function test_Layer_MapGuide_isBaseLayer(t) {
|
||||
t.plan(3);
|
||||
|
||||
var options = {singleTile:true};
|
||||
@@ -119,7 +119,7 @@
|
||||
t.ok( !layer.isBaseLayer, "baselayer is false when option is set to false" );
|
||||
}
|
||||
|
||||
function test_06_Layer_MapGuide_mergeNewParams (t) {
|
||||
function test_Layer_MapGuide_mergeNewParams (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var options = {singleTile:true};
|
||||
@@ -147,7 +147,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_99_Layer_MapGuide_destroy (t) {
|
||||
function test_Layer_MapGuide_destroy (t) {
|
||||
|
||||
t.plan( 1 );
|
||||
|
||||
|
||||
+18
-18
@@ -15,7 +15,7 @@
|
||||
var params = { map: '/mapdata/vmap_wms.map',
|
||||
layers: 'basic'};
|
||||
|
||||
function test_01_Layer_MapServer_constructor (t) {
|
||||
function test_Layer_MapServer_constructor (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_02_Layer_MapServer_addtile (t) {
|
||||
function test_Layer_MapServer_addtile (t) {
|
||||
t.plan( 6 );
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -71,7 +71,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_03_Layer_MapServer_inittiles (t) {
|
||||
function test_Layer_MapServer_inittiles (t) {
|
||||
t.plan( 2 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.MapServer(name, url, params);
|
||||
@@ -84,7 +84,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_MapServer_clone (t) {
|
||||
function test_Layer_MapServer_clone (t) {
|
||||
t.plan(4);
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -112,7 +112,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_05_Layer_MapServer_isBaseLayer(t) {
|
||||
function test_Layer_MapServer_isBaseLayer(t) {
|
||||
t.plan(3);
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -128,7 +128,7 @@
|
||||
t.ok( !layer.isBaseLayer, "baselayer is false when option is set to false" );
|
||||
}
|
||||
|
||||
function test_06_Layer_MapServer_mergeNewParams (t) {
|
||||
function test_Layer_MapServer_mergeNewParams (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map("map");
|
||||
@@ -155,7 +155,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_07_Layer_MapServer_getFullRequestString (t) {
|
||||
function test_Layer_MapServer_getFullRequestString (t) {
|
||||
t.plan( 3 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
tUrl = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_08_Layer_MapServer_setOpacity (t) {
|
||||
function test_Layer_MapServer_setOpacity (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -221,7 +221,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_20_Layer_MapServer_Reproject (t) {
|
||||
function test_Layer_MapServer_Reproject (t) {
|
||||
var validkey = (window.location.protocol == "file:") ||
|
||||
(window.location.host == "localhost") ||
|
||||
(window.location.host == "openlayers.org");
|
||||
@@ -259,7 +259,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_30_Layer_MapServer_singleTile (t) {
|
||||
function test_Layer_MapServer_singleTile (t) {
|
||||
t.plan( 5 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.MapServer(name, url, params, {singleTile: true});
|
||||
@@ -275,7 +275,7 @@
|
||||
|
||||
|
||||
|
||||
function test_99_Layer_MapServer_destroy (t) {
|
||||
function test_Layer_MapServer_destroy (t) {
|
||||
|
||||
t.plan( 1 );
|
||||
|
||||
@@ -306,7 +306,7 @@
|
||||
var params = { map: '/mapdata/vmap_wms.map',
|
||||
layers: 'basic'};
|
||||
|
||||
function test_01_Layer_MapServer_Untiled_constructor (t) {
|
||||
function test_Layer_MapServer_Untiled_constructor (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -320,7 +320,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_04_Layer_MapServer_Untiled_clone (t) {
|
||||
function test_Layer_MapServer_Untiled_clone (t) {
|
||||
t.plan(3);
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -343,7 +343,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_05_Layer_MapServer_Untiled_isBaseLayer(t) {
|
||||
function test_Layer_MapServer_Untiled_isBaseLayer(t) {
|
||||
t.plan(3);
|
||||
|
||||
var url = "http://labs.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -359,7 +359,7 @@
|
||||
t.ok( !layer.isBaseLayer, "baselayer is false when option is set to false" );
|
||||
}
|
||||
|
||||
function test_06_Layer_MapServer_Untiled_mergeNewParams (t) {
|
||||
function test_Layer_MapServer_Untiled_mergeNewParams (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var map = new OpenLayers.Map("map");
|
||||
@@ -385,7 +385,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_07_Layer_MapServer_Untiled_getFullRequestString (t) {
|
||||
function test_Layer_MapServer_Untiled_getFullRequestString (t) {
|
||||
|
||||
|
||||
t.plan( 1 );
|
||||
@@ -411,7 +411,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_08_Layer_MapServer_Untiled_setOpacity (t) {
|
||||
function test_Layer_MapServer_Untiled_setOpacity (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -443,7 +443,7 @@
|
||||
t.ok(clone.singleTile, "regression test: clone works. this is for #1013");
|
||||
}
|
||||
|
||||
function test_99_Layer_MapServer_Untiled_destroy (t) {
|
||||
function test_Layer_MapServer_Untiled_destroy (t) {
|
||||
|
||||
t.plan( 1 );
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_Markers_constructor (t) {
|
||||
function test_Layer_Markers_constructor (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_02_Layer_Markers_addlayer (t) {
|
||||
function test_Layer_Markers_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_98_Layer_Markers_addMarker_removeMarker (t) {
|
||||
function test_Layer_Markers_addMarker_removeMarker (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -46,7 +46,7 @@
|
||||
t.ok(true, "removing marker when no markers present does not script error");
|
||||
|
||||
}
|
||||
function test_99_Layer_Markers_destroy (t) {
|
||||
function test_Layer_Markers_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer.Markers('Test Layer');
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -55,7 +55,7 @@
|
||||
t.eq( layer.map, null, "layer.map is null after destroy" );
|
||||
}
|
||||
|
||||
function test_03_Layer_Markers_getDataExtent(t) {
|
||||
function test_Layer_Markers_getDataExtent(t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var layer = {};
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_MultiMap_constructor (t) {
|
||||
function test_Layer_MultiMap_constructor (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -21,7 +21,7 @@
|
||||
t.ok ( layer.mapObject != null, "MultiMap Object correctly loaded");
|
||||
}
|
||||
|
||||
function test_02_Layer_MultiMap_isBaseLayer (t) {
|
||||
function test_Layer_MultiMap_isBaseLayer (t) {
|
||||
t.plan(1);
|
||||
|
||||
var layer = new OpenLayers.Layer.MultiMap('Goog Layer');
|
||||
@@ -29,7 +29,7 @@
|
||||
t.ok(layer.isBaseLayer, "a default load of google layer responds as a base layer");
|
||||
}
|
||||
|
||||
function test_04_Layer_MultiMap_Translation_lonlat (t) {
|
||||
function test_Layer_MultiMap_Translation_lonlat (t) {
|
||||
|
||||
t.plan( 4 );
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
t.ok( layer.getOLLonLatFromMapObjectLonLat(null) == null, "getOLLonLatFromGLatLng(null) returns null");
|
||||
}
|
||||
|
||||
function test_05_Layer_MultiMap_Translation_pixel (t) {
|
||||
function test_Layer_MultiMap_Translation_pixel (t) {
|
||||
|
||||
t.plan( 4 );
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_99_Layer_destroy (t) {
|
||||
function test_Layer_destroy (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
var name = "PointTrack Layer";
|
||||
|
||||
function test_01_Layer_PointTrack_constructor(t) {
|
||||
function test_Layer_PointTrack_constructor(t) {
|
||||
t.plan(2);
|
||||
|
||||
var layer = new OpenLayers.Layer.PointTrack(name);
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_02_Layer_PointTrack_addNodes(t) {
|
||||
function test_Layer_PointTrack_addNodes(t) {
|
||||
t.plan(11);
|
||||
|
||||
var layer = new OpenLayers.Layer.PointTrack(name,
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_99_Layer_PointTrack_destroy (t) {
|
||||
function test_Layer_PointTrack_destroy (t) {
|
||||
t.plan(3);
|
||||
layer = new OpenLayers.Layer.PointTrack(name);
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
var options = {'layername':'basic', 'type':'png'};
|
||||
|
||||
|
||||
function test_01_Layer_TMS_constructor (t) {
|
||||
function test_Layer_TMS_constructor (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
layer = new OpenLayers.Layer.TMS(name, url, options);
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
|
||||
function test_03_Layer_TMS_clearTiles (t) {
|
||||
function test_Layer_TMS_clearTiles (t) {
|
||||
t.plan( 1 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.TMS(name, url, options);
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_TMS_getTMSBounds(t) {
|
||||
function test_Layer_TMS_getTMSBounds(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
layer = new OpenLayers.Layer.TMS(name, url, options);
|
||||
@@ -56,7 +56,7 @@
|
||||
layer.grid = null;
|
||||
}
|
||||
|
||||
function test_05_Layer_TMS_getResolution(t) {
|
||||
function test_Layer_TMS_getResolution(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -69,7 +69,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_06_Layer_TMS_getZoomForExtent(t) {
|
||||
function test_Layer_TMS_getZoomForExtent(t) {
|
||||
t.plan( 2 );
|
||||
var bounds, zoom;
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
*
|
||||
*/
|
||||
function test_10_Layer_TMS_getURL(t) {
|
||||
function test_Layer_TMS_getURL(t) {
|
||||
|
||||
t.plan(3);
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_11_Layer_TMS_setMap(t) {
|
||||
function test_Layer_TMS_setMap(t) {
|
||||
|
||||
t.plan(3);
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_99_Layer_TMS_destroy (t) {
|
||||
function test_Layer_TMS_destroy (t) {
|
||||
|
||||
t.plan( 3 );
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
datafile_overflow = "." + datafile_overflow;
|
||||
}
|
||||
|
||||
function test_01_Layer_Text_constructor (t) {
|
||||
function test_Layer_Text_constructor (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', { location: datafile });
|
||||
@@ -32,7 +32,7 @@
|
||||
t.eq( layer.markers[0].icon.url, 'http://boston.openguides.org/markers/ORANGE.png', "icon" );
|
||||
} );
|
||||
}
|
||||
function test_02_Layer_Text_draw (t) {
|
||||
function test_Layer_Text_draw (t) {
|
||||
// t.plan(5);
|
||||
t.plan( 2 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', { location: datafile });
|
||||
@@ -58,7 +58,7 @@
|
||||
*/
|
||||
});;
|
||||
}
|
||||
function test_03_Layer_Text_events (t) {
|
||||
function test_Layer_Text_events (t) {
|
||||
t.plan( 5 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', { location: datafile2 });
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -81,7 +81,7 @@
|
||||
t.eq(map.popups[0].contentDiv.style[prop],"auto", "default Popup overflow correct");
|
||||
});
|
||||
}
|
||||
function test_03_Layer_Text_overflow (t) {
|
||||
function test_Layer_Text_overflow (t) {
|
||||
t.plan( 4 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', { location: datafile_overflow });
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -105,7 +105,7 @@
|
||||
t.eq(map.popups[0].contentDiv.style[prop],"hidden", "Popup overflow read from file");
|
||||
});
|
||||
}
|
||||
function test_04_Layer_Text_events_nopopups (t) {
|
||||
function test_Layer_Text_events_nopopups (t) {
|
||||
t.plan( 4 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', { location: datafile });
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -139,7 +139,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
function test_99_Layer_Text_destroy (t) {
|
||||
function test_Layer_Text_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer.Text('Test Layer');
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
|
||||
|
||||
function test_01_Layer_TileCache_constructor (t) {
|
||||
function test_Layer_TileCache_constructor (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var name = 'Test Layer';
|
||||
@@ -35,7 +35,7 @@
|
||||
layer.destroy();
|
||||
}
|
||||
|
||||
function test_03_Layer_TileCache_clearTiles (t) {
|
||||
function test_Layer_TileCache_clearTiles (t) {
|
||||
t.plan( 1 );
|
||||
var name = 'Test Layer';
|
||||
var url = "http://labs.metacarta.com/wms-c/Basic.py/";
|
||||
@@ -57,7 +57,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_TileCache_getTileCacheBounds(t) {
|
||||
function test_Layer_TileCache_getTileCacheBounds(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var name = 'Test Layer';
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_05_Layer_TileCache_getResolution(t) {
|
||||
function test_Layer_TileCache_getResolution(t) {
|
||||
t.plan( 1 );
|
||||
|
||||
var name = 'Test Layer';
|
||||
@@ -96,7 +96,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_06_Layer_TileCache_getZoomForExtent(t) {
|
||||
function test_Layer_TileCache_getZoomForExtent(t) {
|
||||
t.plan( 2 );
|
||||
var bounds, zoom;
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_10_Layer_TileCache_getURL(t) {
|
||||
function test_Layer_TileCache_getURL(t) {
|
||||
|
||||
t.plan(2);
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_11_Layer_TileCache_setMap(t) {
|
||||
function test_Layer_TileCache_setMap(t) {
|
||||
|
||||
t.plan(3);
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_99_Layer_TileCache_destroy (t) {
|
||||
function test_Layer_TileCache_destroy (t) {
|
||||
|
||||
t.plan( 3 );
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
var name = "Vector Layer";
|
||||
|
||||
function test_01_Layer_Vector_constructor(t) {
|
||||
function test_Layer_Vector_constructor(t) {
|
||||
t.plan(3);
|
||||
|
||||
var layer = new OpenLayers.Layer.Vector(name);
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_02_Layer_Vector_addFeatures(t) {
|
||||
function test_Layer_Vector_addFeatures(t) {
|
||||
t.plan(4);
|
||||
|
||||
var layer = new OpenLayers.Layer.Vector(name);
|
||||
@@ -45,7 +45,7 @@
|
||||
layer.addFeatures([pointFeature], {silent: true});
|
||||
}
|
||||
|
||||
function test_03_Layer_Vector_removeFeatures(t) {
|
||||
function test_Layer_Vector_removeFeatures(t) {
|
||||
t.plan(3);
|
||||
|
||||
var layer = new OpenLayers.Layer.Vector(name);
|
||||
@@ -165,7 +165,7 @@
|
||||
t.eq(layer.selectedFeatures, [], "destroyFeatures removes appropriate selected features");
|
||||
}
|
||||
|
||||
function test_99_Layer_Vector_destroy (t) {
|
||||
function test_Layer_Vector_destroy (t) {
|
||||
t.plan(2);
|
||||
layer = new OpenLayers.Layer.Vector(name);
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
+12
-12
@@ -14,7 +14,7 @@
|
||||
layers: 'basic',
|
||||
format: 'image/jpeg'};
|
||||
|
||||
function test_01_Layer_WMS_constructor (t) {
|
||||
function test_Layer_WMS_constructor (t) {
|
||||
t.plan( 13 );
|
||||
|
||||
var trans_format = "image/png";
|
||||
@@ -54,7 +54,7 @@
|
||||
t.eq(layer6.isBaseLayer, true, "transparency == false, wms is baselayer");
|
||||
}
|
||||
|
||||
function test_02_Layer_WMS_addtile (t) {
|
||||
function test_Layer_WMS_addtile (t) {
|
||||
t.plan( 6 );
|
||||
|
||||
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -132,7 +132,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_03_Layer_WMS_inittiles (t) {
|
||||
function test_Layer_WMS_inittiles (t) {
|
||||
t.plan( 2 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
layer = new OpenLayers.Layer.WMS(name, url, params);
|
||||
@@ -144,7 +144,7 @@
|
||||
}
|
||||
|
||||
|
||||
function test_04_Layer_WMS_clone (t) {
|
||||
function test_Layer_WMS_clone (t) {
|
||||
t.plan(4);
|
||||
|
||||
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -172,7 +172,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_05_Layer_WMS_isBaseLayer(t) {
|
||||
function test_Layer_WMS_isBaseLayer(t) {
|
||||
t.plan(3);
|
||||
|
||||
var url = "http://octo.metacarta.com/cgi-bin/mapserv";
|
||||
@@ -188,7 +188,7 @@
|
||||
t.ok( !layer.isBaseLayer, "baselayer is false when option is set to false" );
|
||||
}
|
||||
|
||||
function test_06_Layer_WMS_mergeNewParams (t) {
|
||||
function test_Layer_WMS_mergeNewParams (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var map = new OpenLayers.Map("map");
|
||||
@@ -216,7 +216,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_07_Layer_WMS_getFullRequestString (t) {
|
||||
function test_Layer_WMS_getFullRequestString (t) {
|
||||
|
||||
|
||||
t.plan( 2 );
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_08_Layer_WMS_setOpacity (t) {
|
||||
function test_Layer_WMS_setOpacity (t) {
|
||||
t.plan( 5 );
|
||||
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -274,7 +274,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_20_Layer_WMS_Reproject (t) {
|
||||
function test_Layer_WMS_Reproject (t) {
|
||||
var validkey = (window.location.protocol == "file:") ||
|
||||
(window.location.host == "localhost") ||
|
||||
(window.location.host == "openlayers.org");
|
||||
@@ -314,7 +314,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_21_Layer_WMS_noGutters (t) {
|
||||
function test_Layer_WMS_noGutters (t) {
|
||||
t.plan(2);
|
||||
var map = new OpenLayers.Map('map');
|
||||
var layer = new OpenLayers.Layer.WMS("no gutter layer", url, params, {gutter: 0});
|
||||
@@ -334,7 +334,7 @@
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_22_Layer_WMS_gutters (t) {
|
||||
function test_Layer_WMS_gutters (t) {
|
||||
t.plan(2);
|
||||
var gutter = 15;
|
||||
var map = new OpenLayers.Map('map');
|
||||
@@ -367,7 +367,7 @@
|
||||
t.ok(clone.singleTile, "regression test: clone works. this is for #1013");
|
||||
}
|
||||
|
||||
function test_99_Layer_WMS_destroy (t) {
|
||||
function test_Layer_WMS_destroy (t) {
|
||||
|
||||
t.plan( 1 );
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<script type="text/javascript">
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_Yahoo_constructor (t) {
|
||||
function test_Layer_Yahoo_constructor (t) {
|
||||
t.plan( 4 );
|
||||
|
||||
var tempEventPane = OpenLayers.Layer.EventPane.prototype.initialize;
|
||||
@@ -29,7 +29,7 @@
|
||||
OpenLayers.Layer.FixedZoomLevels.prototype.initialize = tempFixedZoomLevels;
|
||||
}
|
||||
|
||||
function test_02_Layer_Yahoo_loadMapObject(t) {
|
||||
function test_Layer_Yahoo_loadMapObject(t) {
|
||||
t.plan(5);
|
||||
|
||||
var temp = YMap;
|
||||
@@ -67,7 +67,7 @@
|
||||
YMap = temp;
|
||||
}
|
||||
|
||||
function test_03_Layer_Yahoo_onMapResize(t) {
|
||||
function test_Layer_Yahoo_onMapResize(t) {
|
||||
t.plan(2);
|
||||
|
||||
g_MapSize = {};
|
||||
@@ -92,7 +92,7 @@
|
||||
l.onMapResize();
|
||||
}
|
||||
|
||||
function test_04_Layer_Yahoo_getMapObjectSizeFromOLSize(t) {
|
||||
function test_Layer_Yahoo_getMapObjectSizeFromOLSize(t) {
|
||||
t.plan(2);
|
||||
|
||||
var temp = YSize;
|
||||
|
||||
Reference in New Issue
Block a user