diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/webgpu/api/validation/query_set/destroy.spec.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/webgpu/api/validation/query_set/destroy.spec.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/webgpu/api/validation/query_set/destroy.spec.ts b/dom/webgpu/tests/cts/checkout/src/webgpu/api/validation/query_set/destroy.spec.ts new file mode 100644 index 0000000000..64b6f4f606 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/webgpu/api/validation/query_set/destroy.spec.ts @@ -0,0 +1,15 @@ +export const description = ` +Destroying a query set more than once is allowed. +`; + +import { makeTestGroup } from '../../../../common/framework/test_group.js'; +import { ValidationTest } from '../validation_test.js'; + +export const g = makeTestGroup(ValidationTest); + +g.test('twice').fn(async t => { + const qset = t.device.createQuerySet({ type: 'occlusion', count: 1 }); + + qset.destroy(); + qset.destroy(); +}); |