summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-23 19:05:50 +0100
committerGitHub <noreply@github.com>2023-02-23 19:05:50 +0100
commit451b45ee3a26ed6e393c3deba86937e1a6dc5649 (patch)
tree8ac88074ae0bdaaaa634ab2b2f0b86fc1dcfc018 /cli/tests
parent6233c0aff0dc9e58b02dfc9499048385bbf836c6 (diff)
fix(webgpu): don't default to 0 for setVertexBuffer.size & properly use webidl.setlike (#17800)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/webgpu_test.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/unit/webgpu_test.ts b/cli/tests/unit/webgpu_test.ts
index decceb0f9..2d98167cf 100644
--- a/cli/tests/unit/webgpu_test.ts
+++ b/cli/tests/unit/webgpu_test.ts
@@ -217,6 +217,16 @@ Deno.test({
Deno.close(Number(resources[resources.length - 1]));
});
+Deno.test({
+ ignore: isWsl || isLinuxOrMacCI,
+}, async function webgpuAdapterHasFeatures() {
+ const adapter = await navigator.gpu.requestAdapter();
+ assert(adapter);
+ assert(adapter.features);
+ const resources = Object.keys(Deno.resources());
+ Deno.close(Number(resources[resources.length - 1]));
+});
+
async function checkIsWsl() {
return Deno.build.os === "linux" && await hasMicrosoftProcVersion();