[wpt-sync] Sync PR 49258 - [built-in-ai] Expose ai.translator and make AITranslatorFactory work
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox135 fixed)
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49258 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49258
Details from upstream follow.
rubberyuzu <yuzus@chromium.org> wrote:
[built-in-ai] Expose ai.translator and make AITranslatorFactory work
This CL does two things:
(1) Expose translator to ai
(2) Make AITranslator work correctly (call CreateTranslator from
AITranslatorFactory)
Most of the code is copied from translator.cc and langauge_translator.cc.Bug: 379643382
Change-Id: If2341b958cd9dcb2641891ff3aabf02e760e4b47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023056
Reviewed-by: Fergal Daly \<fergal@chromium.org>
Reviewed-by: Kentaro Hara \<haraken@chromium.org>
Commit-Queue: Yuzu Saijo \<yuzus@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1384790}
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 1 subtests
Status Summary
Firefox
OK : 2
FAIL: 2
Chrome
OK : 2
FAIL: 2
Safari
OK : 2
FAIL: 2
Links
Details
New Tests That Don't Pass
- /ai/translator/ai_translator_bad_input.tentative.https.window.html [wpt.fyi]
- translator.create without options do not crash:
FAIL(Chrome:FAIL, Safari:FAIL)
- translator.create without options do not crash:
- /ai/translator/ai_translator_translate.tentative.https.window.html [wpt.fyi]
- Translate from English to Japanese:
FAIL(Chrome:FAIL, Safari:FAIL)
- Translate from English to Japanese:
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/94d456ca9869
https://hg.mozilla.org/mozilla-central/rev/e09fb4f73970
Description
•