summaryrefslogtreecommitdiff
path: root/tests/unit/webgpu_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/webgpu_test.ts')
-rw-r--r--tests/unit/webgpu_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/webgpu_test.ts b/tests/unit/webgpu_test.ts
index 78a591c71..ae584a587 100644
--- a/tests/unit/webgpu_test.ts
+++ b/tests/unit/webgpu_test.ts
@@ -271,7 +271,7 @@ Deno.test({
const invalidSize = [0, 0, 0];
const msgIncludes =
- "A sequence of number used as a GPUColor must have exactly 4 elements.";
+ "A sequence of number used as a GPUColor must have exactly 4 elements, received 3 elements";
// validate the argument of descriptor.colorAttachments[@@iterator].clearValue property's length of GPUCommandEncoder.beginRenderPass when its a sequence
// https://www.w3.org/TR/2024/WD-webgpu-20240409/#dom-gpucommandencoder-beginrenderpass
@@ -337,7 +337,7 @@ Deno.test({
const overSize = [256, 256, 1, 1];
const msgIncludes =
- "A sequence of number used as a GPUExtent3D must have between 1 and 3 elements.";
+ "A sequence of number used as a GPUExtent3D must have between 1 and 3 elements";
// validate the argument of descriptor.size property's length of GPUDevice.createTexture when its a sequence
// https://www.w3.org/TR/2024/WD-webgpu-20240409/#dom-gpudevice-createtexture
@@ -437,7 +437,7 @@ Deno.test({
const overSize = [256, 256, 1, 1];
const msgIncludes =
- "A sequence of number used as a GPUOrigin3D must have at most 3 elements.";
+ "A sequence of number used as a GPUOrigin3D must have at most 3 elements, received 4 elements";
// validate the argument of destination.origin property's length of GPUCommandEncoder.copyBufferToTexture when its a sequence
// https://www.w3.org/TR/2024/WD-webgpu-20240409/#dom-gpucommandencoder-copybuffertotexture