From 692eba57196c73d3f1f4e0e468148e968ea28294 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Wed, 23 Sep 2026 11:01:21 -0700 Subject: [PATCH] Fix stale test description in the requestDevice:stale: test This test was updated to expect an exception rather than a lost device but we forgot to update the description. --- src/webgpu/api/operation/adapter/requestDevice.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webgpu/api/operation/adapter/requestDevice.spec.ts b/src/webgpu/api/operation/adapter/requestDevice.spec.ts index e8560e1ccff5..ef0fe2722feb 100644 --- a/src/webgpu/api/operation/adapter/requestDevice.spec.ts +++ b/src/webgpu/api/operation/adapter/requestDevice.spec.ts @@ -95,7 +95,9 @@ g.test('stale') ` Test that adapter.requestDevice() can successfully return a device once, and once only. - Tests that we can successfully resolve after serial and concurrent rejections. - - Tests that consecutive valid attempts only succeeds the first time, returning lost device otherwise.` + - Tests that consecutive valid attempts only succeeds the first time, throwing OperationError + afterward, when the adapter state is "consumed". (Note it's not possibe for CTS to test the + adapter state "expired" since there's no way to lose an adapter in the API.)` ) .paramsSubcasesOnly(u => u