From 888cf3f6841b029357e5da640578cd5f06331ae9 Mon Sep 17 00:00:00 2001 From: Noeri Huisman <8823461+mrxz@users.noreply.github.com> Date: Sat, 8 Jul 2023 00:54:50 +0200 Subject: [PATCH] Don't call img.onload() manually during test as images might've already loaded (#5331) Co-authored-by: Noeri Huisman --- tests/core/a-assets.test.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/core/a-assets.test.js b/tests/core/a-assets.test.js index 5f347cd9254..8a246956b58 100644 --- a/tests/core/a-assets.test.js +++ b/tests/core/a-assets.test.js @@ -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) {