Open Bug 1257368 Opened 4 years ago Updated 4 years ago

MockFilePicker doesn't support returning multiple returnFiles

Categories

(Testing :: Mochitest, defect)

Version 3
defect
Not set

Tracking

(Not tracked)

People

(Reporter: jaws, Unassigned)

References

Details

From https://bugzilla.mozilla.org/show_bug.cgi?id=1251809#c10,
> This patch adds support for tooltips on input[type=file] in e10s. I've
> updated the automated test to work in both non-e10s and e10s, but was unable
> to add test cases for multiple files being selected due to an issue with
> MockFilePicker where it only returns the first file from the returnList.
> Testing for multiple files will need to be done manually.

We can set .returnFiles to an array of size larger than 1, but <input type=file multiple> only gets a .files property of length 1.
You need to log in before you can comment on or make changes to this bug.