From 6e707f85a613b385ec8cad0ce4984316fda519d8 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 472bc008ef3f..3e9905dd5bd8 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({ @@ -223,7 +223,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); @@ -336,7 +336,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);