diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/unit/webgpu_test.ts | |
parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/unit/webgpu_test.ts')
-rw-r--r-- | cli/tests/unit/webgpu_test.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts index 4fbbd5cde..cbefa7c07 100644 --- a/cli/tests/unit/webgpu_test.ts +++ b/cli/tests/unit/webgpu_test.ts @@ -22,7 +22,7 @@ unitTest({ assert(device); const shaderCode = await Deno.readTextFile( - "cli/tests/webgpu_computepass_shader.wgsl", + "cli/tests/testdata/webgpu_computepass_shader.wgsl", ); const shaderModule = device.createShaderModule({ @@ -111,7 +111,7 @@ unitTest({ assert(device); const shaderCode = await Deno.readTextFile( - "cli/tests/webgpu_hellotriangle_shader.wgsl", + "cli/tests/testdata/webgpu_hellotriangle_shader.wgsl", ); const shaderModule = device.createShaderModule({ @@ -194,7 +194,10 @@ unitTest({ await outputBuffer.mapAsync(1); const data = new Uint8Array(outputBuffer.getMappedRange()); - assertEquals(data, await Deno.readFile("cli/tests/webgpu_hellotriangle.out")); + assertEquals( + data, + await Deno.readFile("cli/tests/testdata/webgpu_hellotriangle.out"), + ); outputBuffer.unmap(); |