Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 8, 2024
1 parent 25f6e51 commit b04426a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tests/texture-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion test/webgl.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ function makeItWrapperThatChecksContextAndExtensions(contextType) {
if (skippedMsg) {
it(`${skippedMsg}: '${msg}' skipped`, () => true);
} else {
it(msg, fn);
it(msg, async() => {
await fn();
});
}
};
}
Expand Down

0 comments on commit b04426a

Please sign in to comment.