OLD | NEW |
| (Empty) |
1 Test suspend/resume for an AudioContext | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS context.state is "paused" | |
7 PASS context.suspend() did not throw exception. | |
8 PASS context.suspend() did not throw exception. | |
9 PASS p1 = context.resume() did not throw exception. | |
10 PASS [object Object] is an instance of function Promise() { [native code] } | |
11 PASS p2 = context.resume() did not throw exception. | |
12 PASS [object Object] is an instance of function Promise() { [native code] } | |
13 PASS Promises from resume are not equal. | |
14 PASS context.state is "paused" | |
15 PASS Context resumed correctly. | |
16 PASS Context resumed correctly. | |
17 PASS context.state is "released" | |
18 PASS context.suspend() threw exception InvalidStateError: Failed to execute 'sus
pend' on 'AudioContext': cannot suspend an AudioContext that has been released. | |
19 PASS resume() on a released context rejected as expected | |
20 PASS successfullyParsed is true | |
21 | |
22 TEST COMPLETE | |
23 | |
OLD | NEW |