Fixing test that broke in FF with ff1f99a03f.

This commit is contained in:
ahocevar
2012-06-11 13:38:42 +02:00
parent 4c07332c8a
commit 96359fbc99
+17 -17
View File
@@ -1362,7 +1362,7 @@
t.plan(5); t.plan(5);
// set up // set up
var map = new OpenLayers.Map('map', { var map = new OpenLayers.Map('map', {
resolutions: [32, 16, 8, 4, 2, 1] resolutions: [32, 16, 8, 4, 2, 1]
}); });
@@ -1375,28 +1375,28 @@
map.zoomTo(1); map.zoomTo(1);
t.delay_call(1, function() { // Mark one tile loaded, to see if back buffer removal gets scheduled.
layer.grid[1][1].onImageLoad();
t.ok(layer.backBuffer.parentNode === layer.div, t.ok(layer.backBuffer.parentNode === layer.div,
'[a] back buffer is a child of layer div'); '[a] back buffer is a child of layer div');
t.ok(layer.backBufferTimerId !== null, t.ok(layer.backBufferTimerId !== null,
'[a] back buffer scheduled for removal'); '[a] back buffer scheduled for removal');
var backBuffer = layer.backBuffer; var backBuffer = layer.backBuffer;
map.zoomTo(2); map.zoomTo(2);
t.ok(layer.backBuffer !== backBuffer, t.ok(layer.backBuffer !== backBuffer,
'[b] a new back buffer was created'); '[b] a new back buffer was created');
t.ok(layer.backBuffer.parentNode === layer.div, t.ok(layer.backBuffer.parentNode === layer.div,
'[b] back buffer is a child of layer div'); '[b] back buffer is a child of layer div');
t.ok(layer.backBufferTimerId === null, t.ok(layer.backBufferTimerId === null,
'[b] back buffer no longer scheduled for removal'); '[b] back buffer no longer scheduled for removal');
// tear down // tear down
map.destroy(); map.destroy();
});
} }
function test_getGridData(t) { function test_getGridData(t) {