Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /ai/language_detection/capabilities.tentative.https.any.html - WPT Dashboard Interop Dashboard
- /ai/language_detection/capabilities.tentative.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /ai/language_detection/capabilities.tentative.https.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /ai/language_detection/capabilities.tentative.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=capabilities test
// META: global=window,worker
'use strict';
promise_test(async t => {
const languageDetectorCapabilities = await ai.languageDetector.capabilities();
const availability = languageDetectorCapabilities.available;
assert_not_equals(availability, "no");
// TODO(crbug.com/349927087): Add languageDetectorCapabilities.languageAvailable("en") once implemented.
});