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.
2 parents 026ea70 + bcef8c9 commit 9ee0fa7Copy full SHA for 9ee0fa7
test/unit/image/loading.js
@@ -129,10 +129,12 @@ suite('loading images', function() {
129
130
// This gif has frames that are around for 100ms each.
131
// After 100ms has elapsed, the display index should
132
- // increment when we draw the image. We'll wait a little
133
- // longer to make sure p5 knows it should be on the next
134
- // image.
135
- return wait(110);
+ // increment when we draw the image.
+ return wait(100);
+ }).then(function() {
+ return new Promise(function(resolve) {
136
+ window.requestAnimationFrame(resolve);
137
+ });
138
}).then(function() {
139
myp5.image(img, 0, 0);
140
assert.equal(img.gifProperties.displayIndex, 1);
0 commit comments