diff --git a/ai/language_detection/capabilities.tentative.https.any.js b/ai/language_detection/capabilities.tentative.https.any.js index 2a0698695d00ce..3eca5119a37874 100644 --- a/ai/language_detection/capabilities.tentative.https.any.js +++ b/ai/language_detection/capabilities.tentative.https.any.js @@ -1,4 +1,5 @@ // META: title=capabilities test +// META: global=window,worker 'use strict'; @@ -7,4 +8,4 @@ promise_test(async t => { const availability = languageDetectorCapabilities.available; assert_not_equals(availability, "no"); // TODO(crbug.com/349927087): Add languageDetectorCapabilities.languageAvailable("en") once implemented. -}); \ No newline at end of file +}); diff --git a/ai/language_detection/detector.https.tentative.any.js b/ai/language_detection/detector.https.tentative.any.js index 4f962de8339de0..6bd3a41b8cd839 100644 --- a/ai/language_detection/detector.https.tentative.any.js +++ b/ai/language_detection/detector.https.tentative.any.js @@ -1,4 +1,5 @@ // META: title=Detect english +// META: global=window,worker 'use strict'; @@ -11,4 +12,4 @@ promise_test(async t => { for (let i = 0; i < results.length - 1; i++) { assert_greater_than_equal(results[i].confidence, results[i + 1].confidence); } -}); \ No newline at end of file +});