File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ describe('texture tests', () => {
47
47
assertPixelFromTexture ( gl , t3gr , green ) ;
48
48
49
49
// Test that the state is saved when async.
50
- const p = twgl . createTextureAsync ( gl , createRedGreenURL ( ) ) ;
50
+ const p = twgl . createTextureAsync ( gl , { src : createRedGreenURL ( ) } ) ;
51
51
gl . pixelStorei ( gl . UNPACK_FLIP_Y_WEBGL , false ) ;
52
52
const { texture : t4gr } = await p ;
53
53
assertPixelFromTexture ( gl , t4gr , green ) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ function makeItWrapperThatChecksContextAndExtensions(contextType) {
84
84
if ( skippedMsg ) {
85
85
it ( `${ skippedMsg } : '${ msg } ' skipped` , ( ) => true ) ;
86
86
} else {
87
- it ( msg , fn ) ;
87
+ it ( msg , async ( ) => {
88
+ await fn ( ) ;
89
+ } ) ;
88
90
}
89
91
} ;
90
92
}
You can’t perform that action at this time.
0 commit comments