Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test gets skipped with pattern: verify OR os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && !early_beta_or_earlier OR os == 'mac' && os_version == '14.70' && arch == 'x86_64'
  • Manifest: dom/webgpu/tests/mochitest/mochitest-no-pref.toml
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css" />
</head>
<body>
<script>
const func = async function () {
var gotException = false;
try {
await navigator.gpu.requestAdapter();
} catch (ex) {
gotException = true;
}
ok(!gotException, "requesting an adapter should not throw");
};
SimpleTest.waitForExplicitFinish();
func()
.catch(e => ok(false, "Unhandled exception " + e))
.finally(() => SimpleTest.finish());
</script>
</body>
</html>