summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/conformance_tests/parallel-compute.https.any.js
blob: 642fec9f731bb5d207cb66597ea4a904f3ff6c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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';

// https://webmachinelearning.github.io/webnn/#api-mlcontext-compute

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'));
}