diff --git a/test/spec/ol/tilequeue.test.js b/test/spec/ol/tilequeue.test.js index 2e1ec1c1cb..5c01615663 100644 --- a/test/spec/ol/tilequeue.test.js +++ b/test/spec/ol/tilequeue.test.js @@ -26,8 +26,12 @@ describe('ol.TileQueue', function() { ++tileId; var tileCoord = [tileId, tileId, tileId]; var state = 0; // IDLE - var src = 'data:image/gif;base64,R0lGODlhAQABAPAAAP8AAP///' + - 'yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==#' + tileId; + // The tile queue requires a unique URI for each item added. + // Browsers still load the resource even if they don't understand + // the charset. So we create a unique URI by abusing the charset. + var src = 'data:image/gif;charset=junk-' + tileId + + ';base64,R0lGODlhAQABAPAAAP8AAP///' + + 'yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=='; var tileLoadFunction = opt_tileLoadFunction ? opt_tileLoadFunction : ol.source.Image.defaultImageLoadFunction;