We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73212d0 commit 326b660Copy full SHA for 326b660
tests/spec/DisplayListSpec.js
@@ -599,15 +599,13 @@ describe("DisplayList", function () {
599
600
var img = new Image();
601
img.onload = function () {
602
+ data.images = [img];
603
var ss = new createjs.SpriteSheet(data);
604
var text = new createjs.BitmapText("abcdef\nghijklm\nnopqr\nstuvw\nxyz!,.?", ss);
605
_this.stage.addChild(text);
606
- // Need to delay this for Safari.
607
- setTimeout(function () {
608
- _this.stage.update();
609
- _this.compareBaseLine("assets/BitmapText.png", done, expect);
610
- }, 5);
+ _this.stage.update();
+ _this.compareBaseLine("assets/BitmapText.png", done, expect);
611
};
612
img.onerror = function () {
613
fail(img.src + ' failed to load');
0 commit comments