зеркало из https://github.com/mozilla/gecko-dev.git
f57bbf54c7
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 |
||
---|---|---|
.. | ||
browser | ||
chrome | ||
mochitest | ||
reftests | ||
unit | ||
widgets | ||
moz.build |