updating tests for [180]. smack me. some of them are still failing. seems like it might be browser-related

git-svn-id: http://svn.openlayers.org/trunk/openlayers@182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-19 15:52:21 +00:00
parent af81e44e9a
commit e114a80311
2 changed files with 13 additions and 9 deletions

View File

@@ -6,9 +6,11 @@
function test_01_Tile_constructor (t) {
t.plan( 9 );
tile = new OpenLayers.Tile(
new OpenLayers.Bounds(1,2,3,4), "",
new OpenLayers.Size(5,6));
tile = new OpenLayers.Tile(null,
new OpenLayers.Bounds(1,2,3,4),
"",
new OpenLayers.Size(5,6) );
t.ok( tile instanceof OpenLayers.Tile, "new OpenLayers.Tile returns Tile object" );
t.ok( tile.bounds instanceof OpenLayers.Bounds, "tile.bounds is a Bounds object" );
t.eq( tile.bounds.left, 1, "tile.bounds.left is set correctly");

View File

@@ -6,9 +6,10 @@
function test_01_Tile_Image_constructor (t) {
t.plan( 10 );
tile = new OpenLayers.Tile.Image(
new OpenLayers.Bounds(1,2,3,4), "http://www.openlayers.org/dev/tests/tileimage",
new OpenLayers.Size(5,6));
tile = new OpenLayers.Tile.Image(null,
new OpenLayers.Bounds(1,2,3,4),
"http://www.openlayers.org/dev/tests/tileimage",
new OpenLayers.Size(5,6) );
t.ok( tile instanceof OpenLayers.Tile.Image, "new OpenLayers.Tile returns Tile object" );
t.ok( tile.bounds instanceof OpenLayers.Bounds, "tile.bounds is a Bounds object" );
t.eq( tile.bounds.left, 1, "tile.bounds.left is set correctly");
@@ -22,9 +23,10 @@
}
function test_02_Tile_Image_draw (t) {
t.plan( 4 );
tile = new OpenLayers.Tile.Image(
new OpenLayers.Bounds(1,2,3,4), "http://www.openlayers.org/dev/tests/tileimage",
new OpenLayers.Size(5,6));
tile = new OpenLayers.Tile.Image(null,
new OpenLayers.Bounds(1,2,3,4),
"http://www.openlayers.org/dev/tests/tileimage",
new OpenLayers.Size(5,6));
tile.draw();
t.ok( tile.img instanceof HTMLImageElement, "tile.draw creates an image");
t.eq( tile.img.src, "http://www.openlayers.org/dev/tests/tileimage", "tile.draw creates an image");