Skip to content

Commit 175a108

Browse files
Chris Dumezcdumez
andauthored
Fix expected initial AudioContext state in audiocontext-suspend-resume.html (WebKit#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>
1 parent fef5a8a commit 175a108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webaudio/the-audio-api/the-audiocontext-interface/audiocontext-suspend-resume.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
should(() => context = new AudioContext(), 'Create online context')
130130
.notThrow();
131131

132-
should(context.state, 'context.state').beEqualTo('running');
132+
should(context.state, 'context.state').beEqualTo('suspended');
133133
should(context.resume(), 'context.resume')
134134
.beResolved()
135135
.then(() => {

0 commit comments

Comments
 (0)