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).
This commit is contained in:
1 parent
402697c369
commit
3353eeb0c3
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user