From 486cb18fc54b408d40a02415e48e0cfb6cb196ed Mon Sep 17 00:00:00 2001 From: Ian Bull Date: Thu, 19 Sep 2024 00:14:54 -0700 Subject: 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 --- tests/unit/webgpu_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3