1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
This commit is contained in:
Kenta Moriuchi 2024-11-13 06:21:51 +09:00
parent 7716301739
commit 80289681e9
No known key found for this signature in database
GPG key ID: AC843C584A91BE0C

View file

@ -225,6 +225,28 @@ Deno.test({
device.destroy();
});
Deno.test({
ignore: isWsl || isCIWithoutGPU,
}, async function webgpuAdapterHasInfo() {
const adapter = await navigator.gpu.requestAdapter();
assert(adapter);
assert(adapter.info);
const device = await adapter.requestDevice();
assert(device.adapterInfo);
device.destroy();
});
Deno.test({
ignore: isWsl || isCIWithoutGPU,
}, async function webgpuDeviceHasAdapterInfo() {
const adapter = await navigator.gpu.requestAdapter();
assert(adapter);
const device = await adapter.requestDevice();
assert(adapter.info);
assert(device.adapterInfo);
device.destroy();
});
Deno.test({
ignore: isWsl || isCIWithoutGPU,
}, async function webgpuNullWindowSurfaceThrows() {