diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/uncapturederror.spec.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/uncapturederror.spec.ts | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/uncapturederror.spec.ts b/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/uncapturederror.spec.ts new file mode 100644 index 0000000000..c957f55fb3 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/webgpu/api/operation/uncapturederror.spec.ts @@ -0,0 +1,34 @@ +export const description = ` +Tests for GPUDevice.onuncapturederror. +`; + +import { Fixture } from '../../../common/framework/fixture.js'; +import { makeTestGroup } from '../../../common/framework/test_group.js'; + +export const g = makeTestGroup(Fixture); + +g.test('constructor') + .desc( + `GPUUncapturedErrorEvent constructor options (also tests constructing GPUOutOfMemoryError/GPUValidationError)` + ) + .unimplemented(); + +g.test('iff_uncaptured') + .desc( + `{validation, out-of-memory} error should fire uncapturederror iff not captured by a scope.` + ) + .unimplemented(); + +g.test('only_original_device_is_event_target') + .desc( + `Original GPUDevice objects are EventTargets and have onuncapturederror, but +deserialized GPUDevices do not.` + ) + .unimplemented(); + +g.test('uncapturederror_from_non_originating_thread') + .desc( + `Uncaptured errors on any thread should always propagate to the original GPUDevice object +(since deserialized ones don't have EventTarget/onuncapturederror).` + ) + .unimplemented(); |