diff --git a/ai/translator/translator_translate.tentative.window.js b/ai/translator/translator_translate.tentative.window.js new file mode 100644 index 00000000000000..cfa6654e8ce597 --- /dev/null +++ b/ai/translator/translator_translate.tentative.window.js @@ -0,0 +1,15 @@ +// META: title=Translate from English to Japanese +// META: timeout=long +// +// Setting `timeout=long` as this test may require downloading the translation +// library and the language models. + +'use strict'; + +promise_test(async t => { + const translator = await translation.createTranslator({ + sourceLanguage: 'en', + targetLanguage: 'ja', + }); + assert_equals(await translator.translate('hello'), 'こんにちは'); +});