Closed Bug 1604691 Opened 4 years ago Closed 4 years 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

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.

Attachment

General

Created:
Updated:
Size: