diff --git a/test/tests/texture-tests.js b/test/tests/texture-tests.js index 7041c63e..4e790bd8 100644 --- a/test/tests/texture-tests.js +++ b/test/tests/texture-tests.js @@ -47,7 +47,7 @@ describe('texture tests', () => { assertPixelFromTexture(gl, t3gr, green); // Test that the state is saved when async. - const p = twgl.createTextureAsync(gl, createRedGreenURL()); + const p = twgl.createTextureAsync(gl, { src: createRedGreenURL() }); gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false); const { texture: t4gr } = await p; assertPixelFromTexture(gl, t4gr, green); diff --git a/test/webgl.js b/test/webgl.js index 5a98584d..b6bafaca 100644 --- a/test/webgl.js +++ b/test/webgl.js @@ -84,7 +84,9 @@ function makeItWrapperThatChecksContextAndExtensions(contextType) { if (skippedMsg) { it(`${skippedMsg}: '${msg}' skipped`, () => true); } else { - it(msg, fn); + it(msg, async() => { + await fn(); + }); } }; }