Skip to content

Commit b04426a

Browse files
committed
fix test
1 parent 25f6e51 commit b04426a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: test/tests/texture-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('texture tests', () => {
4747
assertPixelFromTexture(gl, t3gr, green);
4848

4949
// Test that the state is saved when async.
50-
const p = twgl.createTextureAsync(gl, createRedGreenURL());
50+
const p = twgl.createTextureAsync(gl, { src: createRedGreenURL() });
5151
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false);
5252
const { texture: t4gr } = await p;
5353
assertPixelFromTexture(gl, t4gr, green);

Diff for: test/webgl.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ function makeItWrapperThatChecksContextAndExtensions(contextType) {
8484
if (skippedMsg) {
8585
it(`${skippedMsg}: '${msg}' skipped`, () => true);
8686
} else {
87-
it(msg, fn);
87+
it(msg, async() => {
88+
await fn();
89+
});
8890
}
8991
};
9092
}

0 commit comments

Comments
 (0)