Bug 1928997: Update tabs icon in Unified Search popup r=desktop-theme-reviewers,daleh...
[gecko.git] / dom / webgpu / mochitest / test_set_bind_group_null.html
blob75d7c82fbb8cabfd3d3ab7219a766524742e4f11
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel="stylesheet" href="/tests/SimpleTest/test.css" />
7 </head>
8 <body>
9 <script>
10 ok(
11 SpecialPowers.getBoolPref("dom.webgpu.enabled"),
12 "Pref should be enabled."
15 const set_bind_group_null = async function () {
16 const adapter = await navigator.gpu.requestAdapter();
17 ok(adapter !== undefined, "adapter !== undefined");
18 const device = await adapter.requestDevice();
19 ok(device !== undefined, "device !== undefined");
21 const bundleEncoder = device.createRenderBundleEncoder({
22 colorFormats: ["rgba8unorm"],
23 });
24 bundleEncoder.setBindGroup(1, null);
25 ok(true, "Was able to set a bindGroup to null.");
28 SimpleTest.waitForExplicitFinish();
30 set_bind_group_null()
31 .catch(e => ok(false, `Unhandled exception ${e}`))
32 .finally(() => SimpleTest.finish());
33 </script>
34 </body>
35 </html>