WPT
wpt / webnn / validation_tests / createContext.https.any.html?npu
Spec: Web Neural Network API ↗
Runs: Chrome 155.0.8039.0 (wpt@d0c38285b, 2026-09-03) | Firefox 157.0a1 (wpt@ed1909ed6, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-56c61 (wpt@cc4d45aa0, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 10/10 | 1/10 | 0/10 | 1/10 | 1/10 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| assert_not_equals(navigator.ml, undefined, "ml property is defined on navigator") | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with default MLContextOptions. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with device type: cpu. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Throw if deviceType is not a valid enum value of type MLDeviceType when creating the context. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with power preference: default. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with power preference: high-performance. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with power preference: low-power. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Throw if powerPreference is not a valid enum value of type MLPowerPreference when creating the context. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| [createContext] Test creating context with deviceType=cpu, powerPreference=high-performance. | PASS | FAIL | FAIL | FAIL | FAIL | — |
| Create context with GPUDevice. | PASS | PASS | FAIL | PASS | PASS | — |