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:
Chris Dumez 2020-09-22 09:16:30 +00:00 коммит произвёл moz-wptsync-bot
Родитель 4759a671fe
Коммит a099d40b6d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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(() => {