From 3353eeb0c30114fe1a4a0b3d4f9279445bb2baa7 Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Wed, 9 Sep 2015 11:03:35 +0200 Subject: [PATCH] Fix IE9 test timeouts by using different pixel placeholder IE9 seems to have occasional problems with decoding the data protocol url used before (single pixel placeholder). --- test/spec/ol/reproj/image.test.js | 3 ++- test/spec/ol/reproj/tile.test.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/reproj/image.test.js b/test/spec/ol/reproj/image.test.js index 08b3b6d409..13d8a8627a 100644 --- a/test/spec/ol/reproj/image.test.js +++ b/test/spec/ol/reproj/image.test.js @@ -7,7 +7,8 @@ describe('ol.reproj.Image', function() { [-180, -85, 180, 85], 10, pixelRatio, function(extent, resolution, pixelRatio) { return new ol.Image(extent, resolution, pixelRatio, [], - 'data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=', '', + 'data:image/gif;base64,' + + 'R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=', null, function(image, src) { image.getImage().src = src; }); diff --git a/test/spec/ol/reproj/tile.test.js b/test/spec/ol/reproj/tile.test.js index a209a1c471..1354b804fb 100644 --- a/test/spec/ol/reproj/tile.test.js +++ b/test/spec/ol/reproj/tile.test.js @@ -23,7 +23,8 @@ describe('ol.reproj.Tile', function() { ol.tilegrid.createForProjection(proj4326, 3, opt_tileSize), 3, 2, -2, pixelRatio, function(z, x, y, pixelRatio) { return new ol.ImageTile([z, x, y], ol.TileState.IDLE, - 'data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=', '', + 'data:image/gif;base64,' + + 'R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=', null, function(tile, src) { tile.getImage().src = src; });