From 9886d5951d8f6990cb3a16553a5df482dbcdd68d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 23 Aug 2019 15:48:30 +0200 Subject: [PATCH] Set viewport size for autoscale tests We were incorrectly relying on the viewport being indirectly set for us. Make sure we are explicit in what we want for these tests. --- tests/test.display.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.display.js b/tests/test.display.js index f44f6c66..05dd8a70 100644 --- a/tests/test.display.js +++ b/tests/test.display.js @@ -223,6 +223,7 @@ describe('Display/Canvas Helper', function () { display = new Display(canvas); display.clipViewport = true; display.resize(4, 3); + display.viewportChangeSize(4, 3); document.body.appendChild(canvas); });