From 149a20b895142f7c86c3d0438b163f1dc1701ec7 Mon Sep 17 00:00:00 2001 From: Shrek Shao Date: Wed, 15 Jan 2025 09:05:31 -0800 Subject: [PATCH] revert configure change --- src/webgpu/web_platform/canvas/configure.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webgpu/web_platform/canvas/configure.spec.ts b/src/webgpu/web_platform/canvas/configure.spec.ts index 6d1f9404adb..69e058d8d1a 100644 --- a/src/webgpu/web_platform/canvas/configure.spec.ts +++ b/src/webgpu/web_platform/canvas/configure.spec.ts @@ -179,7 +179,7 @@ g.test('format') format, }); const configuration = ctx.getConfiguration(); - t.expect(configuration.format === format); + t.expect(configuration!.format === format); } else { t.shouldThrow('TypeError', () => { ctx.configure({ @@ -224,7 +224,7 @@ g.test('usage') }); const configuration = ctx.getConfiguration(); - t.expect(configuration.usage === usage); + t.expect(configuration!.usage === usage); const currentTexture = ctx.getCurrentTexture(); t.expect(currentTexture instanceof GPUTexture); @@ -343,7 +343,7 @@ g.test('alpha_mode') }); const configuration = ctx.getConfiguration(); - t.expect(configuration.alphaMode === alphaMode); + t.expect(configuration!.alphaMode === alphaMode); const currentTexture = ctx.getCurrentTexture(); t.expect(currentTexture instanceof GPUTexture);