Skip to content

Commit

Permalink
Merge pull request openlayers#352 from ahocevar/352
Browse files Browse the repository at this point in the history
Layer/Grid.html tests fail. r=@elemoine
  • Loading branch information
ahocevar committed Mar 27, 2012
2 parents 11395e7 + 3eedfce commit 032293c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Layer/Grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -1203,17 +1203,17 @@
var layer = new OpenLayers.Layer.WMS('', '', {}, {
isBaseLayer: true,
singleTile: true,
ratio: 1
ratio: 1.1
});
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(0, 0), 0);

// move
map.setCenter(new OpenLayers.LonLat(10, 10));
map.setCenter(new OpenLayers.LonLat(50, 50));
t.ok(layer.backBuffer && layer.backBuffer.parentNode === layer.div,
'backbuffer inserted after map move');
t.eq(layer.backBuffer.style.left, '121%');
t.eq(layer.backBuffer.style.top, '211%');
t.eq(layer.backBuffer.style.left, '-25%');
t.eq(layer.backBuffer.style.top, '-28%');
// zoom
map.zoomTo(1);
t.eq(layer.backBuffer, null,
Expand Down

0 comments on commit 032293c

Please sign in to comment.