4 <meta charset=
"utf-8" />
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css" />
11 SpecialPowers
.getBoolPref("dom.webgpu.enabled"),
12 "Pref should be enabled."
15 const func
= async
function () {
16 const adapter
= await navigator
.gpu
.requestAdapter();
17 const device
= await adapter
.requestDevice();
18 const encoder
= device
.createCommandEncoder();
19 const command_buffer
= encoder
.finish();
20 ok(command_buffer
!== undefined, "command_buffer !== undefined");
23 SimpleTest
.waitForExplicitFinish();
25 .catch(e
=> ok(false, "Unhandled exception " + e
))
26 .finally(() => SimpleTest
.finish());