File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ suite('WebGPU p5.RendererWebGPU', function() {
121121 const currentTotalBuffers = poolForVertexBuffer . length +
122122 ( immediateGeom . _vertexBuffersInUse ?. vertexBuffer ?. length || 0 ) ;
123123
124- expect ( currentTotalBuffers ) . to . equal ( initialTotalBuffers ,
124+ expect ( currentTotalBuffers ) . to . equal ( initialTotalBuffers ,
125125 `Buffer count should stay constant across frames (frame ${ frame } )` ) ;
126126 }
127127 } ) ;
@@ -139,11 +139,8 @@ suite('WebGPU p5.RendererWebGPU', function() {
139139 try {
140140 await p . createCanvas ( 100 , 100 , p . WEBGPU ) ;
141141
142- // This triggers an asynchronous _resetContext
143- p . setAttributes ( { antialias : true } ) ;
142+ await p . setAttributes ( { antialias : true } ) ;
144143
145- // This triggers a synchronous resize() -> _updateSize()
146- // before the new renderer's device is ready.
147144 expect ( ( ) => {
148145 p . pixelDensity ( 1 ) ;
149146 } ) . not . toThrow ( ) ;
You can’t perform that action at this time.
0 commit comments