removing HTML comment wrapping scripts - these haven't been necessary since Netscape 2.0 - if your browser doesn't run javsacript, please don't run these tests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4059 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-08-27 17:47:50 +00:00
parent f04d110119
commit e4d857b167
76 changed files with 150 additions and 151 deletions

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var bounds;
function test_01_Bounds_constructor (t) {
t.plan( 17 );
@@ -522,7 +522,7 @@
t.ok(bounds == null, "returns null on erroneous add operation (null y)");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
// remove this next line at 3.0
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
@@ -263,7 +263,7 @@
t.eq( objC.mixed, true, "class C has mixin properties" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var lonlat;
@@ -146,7 +146,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var pixel;
function test_01_Pixel_constructor (t) {
@@ -103,7 +103,7 @@
t.eq( pixel.y, 26, "pixel.y is set correctly");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var Size;
function test_01_Size_constructor (t) {
@@ -59,7 +59,7 @@
t.ok( !size.equals(null), "equals() returns false on comparison to null");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map, control, layer;
function init_map() {
@@ -72,7 +72,7 @@
t.ok(true, "clicking without moving the mouse does not call setCenter");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_KeyboardDefaults_constructor (t) {
t.plan( 2 );
@@ -99,7 +99,7 @@
);
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_LayerSwitcher_constructor (t) {
@@ -142,7 +142,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_MouseToolbar_constructor (t) {
t.plan( 1 );
@@ -50,7 +50,7 @@
t.ok(true, "IE does not run this test.")
}
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_NavToolbar_constructor (t) {
t.plan( 4 );
@@ -25,7 +25,7 @@
// t.eq( control.div.style.top, "6px", "Control div top located correctly by default");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_OverviewMap_constructor (t) {
t.plan( 2 );
@@ -69,7 +69,7 @@
map.destroy();
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_PanZoom_constructor (t) {
t.plan( 4 );
@@ -153,7 +153,7 @@
mapper.setCenter(centerLL, 5);
}
// -->
</script>
</head>
<body onload="loader()">

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_PanZoomBar_constructor (t) {
t.plan( 4 );
@@ -33,7 +33,7 @@
map.addControl(control2, new OpenLayers.Pixel(100,100));
t.eq( control2.div.style.top, "100px", "2nd control div is located correctly");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Control_Panel_constructor (t) {
t.plan( 2 );
@@ -46,7 +46,7 @@
t.ok(!toolControl.active && anotherToolControl.active && toggleControl.active,
"activated the other tool control, the first one is inactive and the toggle control still active.");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_Permalink_constructor (t) {
t.plan( 2 );
@@ -71,7 +71,7 @@
t.eq(OpenLayers.Util.getElement('permalink').href, OpenLayers.Util.getElement('edit_permalink').href, "Panning sets permalink with base and querystring ending with '?'");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
var feature;
@@ -47,7 +47,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var test_content = '<wfs:FeatureCollection' +
' xmlns:fs="http://example.com/featureserver"' +
@@ -56,7 +56,7 @@
t.eq(window.i, undefined,
"i is undefined in window scope after reading.");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var poly_content = '{"type": "FeatureCollection", "members": [{"geometry": {"type": "Polygon", "coordinates": [[[-131.484375, -5.9765625], [-112.5, -58.0078125], [-32.34375, -50.2734375], [-114.609375, 52.3828125], [-167.34375, -35.5078125], [-146.953125, -57.3046875], [-139.921875, -34.1015625], [-131.484375, -5.9765625]]]}, "type": "Feature", "id": 562, "properties": {"strokeColor": "red", "title": "Feature 2", "author": "Your Name Here"}}]}';
var point_feature = '{"geometry": {"type": "Point", "coordinates": [94.21875, 72.94921875]}, "type": "Feature", "id": 573, "properties": {"strokeColor": "blue", "title": "Feature 5", "author": "Your Name Here"}}'
@@ -259,7 +259,7 @@
t.eq(data[0].attributes['author'], 'Your Name Here', 'read author attribute properly');
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
@@ -31,7 +31,7 @@
t.eq(data.firstChild.childNodes[2].firstChild.nodeValue, '45.68 -111.04 45.68 -112.04 ', 'GeoRSS serializes a line correctly');
}
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
@@ -33,7 +33,7 @@
var obj = '{"a":["b"],"c":1}';
t.eq(data, obj, "writing data to json works.");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var points = [];
for(var i=0; i<12; ++i) {
@@ -182,7 +182,7 @@
"format correctly writes GeometryCollection WKT");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var text =
'<?xml version="1.0"?>' +
'<ol:root xmlns="http://namespace.default.net" ' +
@@ -209,7 +209,7 @@
t.ok(found === false, "returns false for bad attribute");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var coll;
function test_01_Collection_constructor (t) {
@@ -220,7 +220,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var curve;
var components = [new OpenLayers.Geometry.Point(10,10),
new OpenLayers.Geometry.Point(0,0)];
@@ -149,7 +149,7 @@
t.ok( curve.components == null, "components is cleared well in destruction");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var line;
var components = [new OpenLayers.Geometry.Point(10,15),
new OpenLayers.Geometry.Point(0,0)];
@@ -189,7 +189,7 @@
t.ok(geometry.equals(clone), "clone has equivalent coordinates");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var line;
var components = [new OpenLayers.Geometry.Point(10,10),
new OpenLayers.Geometry.Point(0,0)];
@@ -233,7 +233,7 @@
"resize correctly adjusts y of component 4");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var line;
function test_01_MultiLineString_constructor (t) {
@@ -21,7 +21,7 @@
t.eq( mline.components.length, 1, "mline.components.length is set correctly");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var point = new OpenLayers.Geometry.Point(10, 15);
@@ -68,7 +68,7 @@
t.ok(geometry.equals(clone), "clone has equivalent coordinates");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var polygon;
var components = [new OpenLayers.Geometry.Point(10,10), new OpenLayers.Geometry.Point(0,0)];
var components2 = [new OpenLayers.Geometry.Point(10,10), new OpenLayers.Geometry.Point(0,0), new OpenLayers.Geometry.Point(10,0), new OpenLayers.Geometry.Point(10,10)];
@@ -26,7 +26,7 @@
t.eq( multipolygon.components.length, 2, "multipolygon.components.length is set correctly");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var point;
function test_01_Point_constructor (t) {
@@ -165,7 +165,7 @@
t.ok(geometry.equals(clone), "clone has equivalent coordinates");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var polygon;
var components = [new OpenLayers.Geometry.Point(10,14), new OpenLayers.Geometry.Point(5,3)];
var components2 = [new OpenLayers.Geometry.Point(12,15), new OpenLayers.Geometry.Point(2,3), new OpenLayers.Geometry.Point(10,0), new OpenLayers.Geometry.Point(10,10)];
@@ -223,7 +223,7 @@
t.ok(geometry.equals(clone), "clone has equivalent coordinates");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_01_Rectangle_constructor (t) {
t.plan( 8 );
@@ -80,7 +80,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_01_Surface_constructor (t) {
t.plan( 2 );
@@ -13,7 +13,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Handler_Drag_constructor(t) {
t.plan(3);
var control = new OpenLayers.Control();
@@ -263,7 +263,7 @@
"deactivate sets dragging to false");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Handler_MouseWheel_constructor(t) {
t.plan(3);
var control = new OpenLayers.Control();
@@ -113,7 +113,7 @@
"deactivate returns true if the handler was active already");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Handler_Path_constructor(t) {
t.plan(3);
var control = new OpenLayers.Control();
@@ -68,7 +68,7 @@
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Handler_Point_constructor(t) {
t.plan(3);
var control = new OpenLayers.Control();
@@ -64,7 +64,7 @@
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
var layer;
@@ -119,7 +119,7 @@
t.eq(layer.pane, null, "Layer.pane is null after being removed.");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_FixedZoomLevels (t) {
@@ -88,7 +88,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var name = "GML Layer";

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var isMSIE = (navigator.userAgent.indexOf("MSIE") > -1);
var layer;
@@ -161,7 +161,7 @@
t.eq( layer.map, null, "layer.map is null after destroy" );
});
}
// -->
</script>
</head>
<body>

View File

@@ -3,7 +3,7 @@
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9XNhd8q0UdwNC7YSO4YZghSPUCi5aRYVveCcVYxzezM4iaj_gxQ9t-UajFL70jfcpquH5l1IJ-Zyyw'></script>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_Google_constructor (t) {
@@ -96,7 +96,7 @@
t.eq( layer.options, null, "layer.options is null after destroy" );
t.eq( layer.gmap, null, "layer.gmap is null after destroy" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -558,7 +558,7 @@
t.ok( layer.grid == null, "tiles appropriately destroyed")
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
var name = "Test Layer";
@@ -205,7 +205,7 @@
t.eq( layer.url, null, "layer.url is null after destroy" );
t.eq( layer.params, null, "layer.params is null after destroy" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_Image_constructor (t) {
@@ -105,7 +105,7 @@
t.eq( layer.options, null, "layer.options is null after destroy" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -214,7 +214,7 @@
t.ok( layer.grid == null, "tiles appropriately destroyed");
}
// -->
</script>
</head>
<body>

View File

@@ -4,7 +4,7 @@
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -241,7 +241,7 @@
t.ok( layer.grid == null, "grid set to null");
}
// -->
</script>
</head>
<body>

View File

@@ -2,7 +2,7 @@
<head>A
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -154,7 +154,7 @@
t.ok( layer.tile == null, "tile set to null");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_Markers_constructor (t) {
@@ -77,7 +77,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -2,7 +2,7 @@
<head>
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/metacarta_04"></script>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_MultiMap_constructor (t) {
@@ -96,7 +96,7 @@
t.eq( layer.options, null, "layer.options is null after destroy" );
t.eq( layer.multimap, null, "layer.gmap is null after destroy" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -169,7 +169,7 @@
t.ok( layer.grid == null, "tiles appropriately destroyed");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var isMSIE = (navigator.userAgent.indexOf("MSIE") > -1);
var layer;
@@ -104,7 +104,7 @@
layer.destroy();
t.eq( layer.map, null, "layer.map is null after destroy" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -160,7 +160,7 @@
t.ok( layer.grid == null, "tiles appropriately destroyed");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var name = "Vector Layer";
@@ -263,7 +263,7 @@
}
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var name = "Vector Layer";
@@ -65,7 +65,7 @@
t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded");
}
// -->
</script>
</head>
<body>

View File

@@ -2,7 +2,7 @@
<head>
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -360,7 +360,7 @@
t.ok( layer.grid == null, "grid set to null");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var layer;
@@ -167,7 +167,7 @@
t.eq(layer.grid[0][3].url, "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?LAYERS=bathymetry%2Cland_fn%2Cpark%2Cdrain_fn%2Cdrainage%2Cprov_bound%2Cfedlimit%2Crail%2Croad%2Cpopplace&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-180%2C450%2C0%2C630&WIDTH=256&HEIGHT=256", "grid[0][3] wms overlay is okay");
t.eq(layer.grid[3][0].url, "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?LAYERS=bathymetry%2Cland_fn%2Cpark%2Cdrain_fn%2Cdrainage%2Cprov_bound%2Cfedlimit%2Crail%2Croad%2Cpopplace&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=0%2C-90%2C180%2C90&WIDTH=256&HEIGHT=256", "grid[3][0] wms overlay okay");
}
// -->
</script>
</head>
<body>

View File

@@ -2,7 +2,7 @@
<head>
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_Yahoo_constructor (t) {
@@ -111,7 +111,7 @@
YSize = temp;
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var box;
function test_01_Box_constructor (t) {
@@ -172,7 +172,7 @@
OpenLayers.Marker.prototype._destroy;
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var tile;
@@ -230,7 +230,6 @@
map.destroy();
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_01_String_startsWith(t) {
t.plan(3);
@@ -161,7 +161,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Console(t) {
/**
@@ -31,7 +31,7 @@
}
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Control_constructor (t) {
t.plan( 1 );
@@ -9,7 +9,7 @@
control = new OpenLayers.Control();
t.ok( control instanceof OpenLayers.Control, "new OpenLayers.Control returns object" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var map;
var a;
@@ -333,7 +333,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var map;
var feature, layer;
@@ -103,7 +103,7 @@
t.ok( !feature2.onScreen(), "feature knows it's offscreen" );
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_01_Format_constructor(t) {
t.plan(4);
@@ -13,7 +13,7 @@
t.eq(typeof format.read, "function", "format has a read function");
t.eq(typeof format.write, "function", "format has a write function");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var map;
function test_01_Geometry_constructor (t) {
@@ -216,7 +216,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
function test_Handler_constructor(t) {
t.plan(4);
var map = new OpenLayers.Map('map');
@@ -206,7 +206,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var icon;
function test_01_Icon_constructor (t) {
@@ -34,7 +34,7 @@
t.eq(parseFloat(icon.imageDiv.style.opacity), 0.5, "icon.setOpacity() works");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
function test_01_Layer_constructor (t) {
@@ -291,7 +291,7 @@
map.destroy();
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var map;
function test_01_Map_constructor (t) {
@@ -463,7 +463,7 @@
t.eq( map.controls, null, "map.controls is null after destroy" );
t.eq( map.viewPortDiv, null, "map's viewportDiv nullified");
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var marker;
function test_01_Marker_constructor (t) {
@@ -106,7 +106,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var popup;
function test_01_Popup_default_constructor(t) {
@@ -110,7 +110,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var layer;
@@ -157,7 +157,7 @@ function test_01_Renderer_drawGeometry(t) {
}
*/
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var tile;
function test_01_Tile_constructor (t) {
@@ -54,7 +54,7 @@
}
// -->
</script>
</head>
<body>

View File

@@ -1,7 +1,7 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
<script type="text/javascript">
var isMozilla = (navigator.userAgent.indexOf("compatible") == -1);
var map;
function test_01_Util_getImagesLocation (t) {
@@ -665,7 +665,7 @@
}
// -->
</script>
</head>
<body>