зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1665968 [wpt PR 25628] - Fix expected initial AudioContext state in audiocontext-suspend-resum…, a=testonly
Automatic update from web-platform-tests Fix expected initial AudioContext state in audiocontext-suspend-resume.html (#25628) As per specification, the initial state of an AudioContext right after constructing it should be 'suspended', not running. The state should only be set to 'running' asynchronously, if the user agent allowed it. Co-authored-by: Chris Dumez <cdumez@apple.com> -- wpt-commits: 175a1086e0061c75d16c5d7e1acb01c85e5e8935 wpt-pr: 25628
This commit is contained in:
Родитель
4759a671fe
Коммит
a099d40b6d
|
@ -129,7 +129,7 @@
|
||||||
should(() => context = new AudioContext(), 'Create online context')
|
should(() => context = new AudioContext(), 'Create online context')
|
||||||
.notThrow();
|
.notThrow();
|
||||||
|
|
||||||
should(context.state, 'context.state').beEqualTo('running');
|
should(context.state, 'context.state').beEqualTo('suspended');
|
||||||
should(context.resume(), 'context.resume')
|
should(context.resume(), 'context.resume')
|
||||||
.beResolved()
|
.beResolved()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче