Skip to content

Commit

Permalink
Don't call img.onload() manually during test as images might've alrea…
Browse files Browse the repository at this point in the history
…dy loaded (#5331)

Co-authored-by: Noeri Huisman <mrxz@users.noreply.github.com>
  • Loading branch information
mrxz and mrxz authored Jul 7, 2023
1 parent 016879a commit 888cf3f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/core/a-assets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ suite('a-assets', function () {

// Load image.
document.body.appendChild(scene);
process.nextTick(function () {
img.onload();
});
});

test('caches image in three.js', function (done) {
Expand Down

0 comments on commit 888cf3f

Please sign in to comment.