Commit 6c5f7b7
[Language Detector] Add handling for empty
Updates implementation and adds test to check that
`detector.expectedInputLanguages` is `null` when an empty array is
passed in.
Spec:
https://webmachinelearning.github.io/translation-api/#create-the-language-detector-object
Bug: 414814251
Change-Id: Ibb9086c94ea02227eba8d1ead62747fcaa2a2c43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6501483
Commit-Queue: Christine Hollingsworth <christinesm@chromium.org>
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1454662}expectedInputLanguages
1 parent a21bc63 commit 6c5f7b7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
0 commit comments