Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webnn/conformance_tests/parallel-compute.https.any.html?cpu - WPT Dashboard Interop Dashboard
- /webnn/conformance_tests/parallel-compute.https.any.html?gpu - WPT Dashboard Interop Dashboard
- /webnn/conformance_tests/parallel-compute.https.any.worker.html?cpu - WPT Dashboard Interop Dashboard
- /webnn/conformance_tests/parallel-compute.https.any.worker.html?gpu - WPT Dashboard Interop Dashboard
// META: title=test parallel WebNN API compute operations
// META: global=window,dedicatedworker
// META: variant=?cpu
// META: variant=?gpu
// META: script=../resources/utils.js
// META: timeout=long
'use strict';
if (navigator.ml) {
testParallelCompute();
} else {
// Show indication to users why the test failed
test(
() => assert_not_equals(
navigator.ml, undefined, 'ml property is defined on navigator'));
}