Closed Bug 1604691 Opened 2 months ago Closed 2 months ago

Add testing API to simulate media control keys event

Categories

(Core :: Audio/Video: Playback, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

We should have a testing API to simulate media control keys event for mochitest, which should be independent with the real implementation on platforms.

Attachment #9117146 - Attachment description: Bug 1604691 - part2 : to generate test events in MediaControlService. → Bug 1604691 - part1 : to generate test events in MediaControlService.
Attachment #9117145 - Attachment description: Bug 1604691 - part1 : add webidl method in ChromeUtils to support generating testing event. → Bug 1604691 - part2: add webidl method in ChromeUtils to support generating testing event.
Attachment #9117145 - Attachment description: Bug 1604691 - part2: add webidl method in ChromeUtils to support generating testing event. → Bug 1604691 - part2 : add webidl method in ChromeUtils to support generating testing event.
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e3c086d2b1b
part1 : to generate test events in MediaControlService. r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/6dd43e833b68
part2 : add webidl method in ChromeUtils to support generating testing event. r=bzbarsky
https://hg.mozilla.org/integration/autoland/rev/89b3007b5de2
part3 : add test. r=bzbarsky
Blocks: 1611021
You need to log in before you can comment on or make changes to this bug.