mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
test
This commit is contained in:
parent
7716301739
commit
80289681e9
1 changed files with 22 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue