From f4463e68c46a54e822babf6a837dd14ab51e2bfd Mon Sep 17 00:00:00 2001 From: Kenneth Russell Date: Wed, 18 Sep 2024 13:56:37 -0700 Subject: [PATCH] Change canvas height each iteration in multisample-corruption test. Attempting to make this test a bit more stressful. --- sdk/tests/js/tests/iterable-test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk/tests/js/tests/iterable-test.js b/sdk/tests/js/tests/iterable-test.js index 45e509f50a..df2a4f5684 100644 --- a/sdk/tests/js/tests/iterable-test.js +++ b/sdk/tests/js/tests/iterable-test.js @@ -107,10 +107,15 @@ IterableTest = (function() { gl.uniformMatrix4fv(uniforms.u_modelViewProjMatrix.location, false, identityMat); + var extraHeight = 0; + function test() { var gl2 = wtu.create3DContext(null, {antialias: true}); - gl2.canvas.width = gl2.canvas.height = 1024; + gl2.canvas.width = 1024; + // Make this test a little more stressful by slightly changing the canvas's height each iteration. + gl2.canvas.height = 1024 + extraHeight; + extraHeight = (1 + extraHeight) % 4; gl2.canvas.style.width = gl2.canvas.style.height = "1px"; document.body.appendChild(gl2.canvas);