зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1767549 - Fix test_currentTime.html to wait for the initial "suspended" -> "running" transition. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D147086
This commit is contained in:
Родитель
6a1523cfa1
Коммит
5f88cd32c1
|
@ -14,10 +14,11 @@ SimpleTest.requestFlakyTimeout("This test needs to wait a while for the AudioCon
|
|||
addLoadEvent(function() {
|
||||
var ac = new AudioContext();
|
||||
is(ac.currentTime, 0, "AudioContext.currentTime should be 0 initially");
|
||||
setTimeout(function() {
|
||||
ac.onstatechange = function () {
|
||||
ok(ac.state == "running", "AudioContext.currentTime should eventually start");
|
||||
ok(ac.currentTime > 0, "AudioContext.currentTime should have increased by now");
|
||||
SimpleTest.finish();
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче