MockFilePicker doesn't support returning multiple returnFiles

NEW
Unassigned

Status

Testing
Mochitest
2 years ago
2 years ago

People

(Reporter: jaws, Unassigned)

Tracking

Version 3
Points:
---

Firefox Tracking Flags

(Not tracked)

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.
Blocks: 1251809
You need to log in before you can comment on or make changes to this bug.