diff options
author | Ian Bull <irbull@eclipsesource.com> | 2024-09-19 00:14:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 09:14:54 +0200 |
commit | 486cb18fc54b408d40a02415e48e0cfb6cb196ed (patch) | |
tree | dbe9e98a7d6edd3d1a464a229d6cee68e19e307e /tests/unit/webgpu_test.ts | |
parent | f460188e583f00144000aa0d8ade08218d47c3c1 (diff) |
refactor(ext/webgpu): align error messages (#25719)
Aligns the error messages in the ext/webgpu folder to be in-line with
the Deno style guide.
https://github.com/denoland/deno/issues/25269
Diffstat (limited to 'tests/unit/webgpu_test.ts')
-rw-r--r-- | tests/unit/webgpu_test.ts | 6 |
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 |