gecko-dev/toolkit/content/tests
alwu f57bbf54c7 Bug 1346880 - part7 : further improve the readability for wakelock test. r=padenot
This patch would further  improve the readability for wakelock test by doing following things.

1. refactor `getWakeLockState()` and rename it to `waitForExpectedWakeLockState()`
In the origin test, we have to create a wakelock sentinel object beforehand, and then call `check()` later, which is not really intuitive. Refactor that function to allow us to use it easier.

2. use const variables to store the wakelock topic (audio-playing/video-playing)

3. add a helper function `ensureNeverAcquireVideoWakelock()` to clearly indicate we won't acquire video wakelock for web audio

Differential Revision: https://phabricator.services.mozilla.com/D94778
2020-10-27 12:32:03 +00:00
..
browser Bug 1346880 - part7 : further improve the readability for wakelock test. r=padenot 2020-10-27 12:32:03 +00:00
chrome Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
mochitest Bug 1602668 - M(1) manifest and test changes. r=kmag,karlt,necko-reviewers,valentin 2020-06-22 19:09:49 +00:00
reftests Bug 1585884 - Remove obsolete textbox-multiline-*.xul reftests. r=Gijs 2019-10-03 14:47:57 +00:00
unit
widgets Bug 1552168: Remove pref security.data_uri.unique_opaque_origin. r=smaug 2020-10-08 16:55:25 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00