mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 11:48:19 +02:00
Adding a test to check whether the wakelock state is correct under different situations. However, the lock state of power manager doesn't equal to the actual platform lock. Now we don't have any way to detect whether platform lock is set correctly or not, but we can at least make sure the specific topic's state in power manager is correct. Differential Revision: https://phabricator.services.mozilla.com/D7355 --HG-- extra : moz-landing-system : lando
14 lines
268 B
HTML
14 lines
268 B
HTML
<!DOCTYPE html>
|
|
<body>
|
|
<script type="text/javascript">
|
|
var audio = new Audio();
|
|
audio.oncanplay = function() {
|
|
audio.oncanplay = null;
|
|
audio.play();
|
|
};
|
|
audio.src = "audio.ogg";
|
|
audio.loop = true;
|
|
audio.id = "v";
|
|
document.body.appendChild(audio);
|
|
</script>
|
|
</body>
|