fix up ArcGIS93Rest Layer tests (closes #2533)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2010-03-19 10:45:27 +00:00
parent ba91df7f1b
commit c1409ee57d

View File

@@ -229,10 +229,10 @@
var tile = layer.grid[0][0];
var request = layer.getURL(tile.bounds);
var args = OpenLayers.Util.getParameters(request);
t.eq(parseInt(args['SIZE'].split(",")[0]),
t.eq(parseInt(args['SIZE'][0]),
tile.size.w,
"layer without gutter requests images that are as wide as the tile");
t.eq(parseInt(args['SIZE'].split(",")[1]),
t.eq(parseInt(args['SIZE'][1]),
tile.size.h,
"layer without gutter requests images that are as tall as the tile");
@@ -251,10 +251,10 @@
var tile = layer.grid[0][0];
var request = layer.getURL(tile.bounds);
var args = OpenLayers.Util.getParameters(request);
t.eq(parseInt(args['SIZE'].split(",")[0]),
t.eq(parseInt(args['SIZE'][0]),
tile.size.w + (2 * gutter),
"layer with gutter requests images that are wider by twice the gutter");
t.eq(parseInt(args['SIZE'].split(",")[1]),
t.eq(parseInt(args['SIZE'][1]),
tile.size.h + (2 * gutter),
"layer with gutter requests images that are taller by twice the gutter");