OLD | NEW |
---|---|
1 Test suspend/resume for an (offline) AudioContext | 1 Test suspend/resume for an (offline) AudioContext |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". |
4 | 4 |
5 | 5 |
6 PASS offlineContext = new OfflineAudioContext(1, durationInSeconds * sampleRate, sampleRate) did not throw exception. | 6 PASS offlineContext = new OfflineAudioContext(1, durationInSeconds * sampleRate, sampleRate) did not throw exception. |
7 PASS offlineContext.state is "suspended" | 7 PASS offlineContext.state is "suspended" |
8 PASS p1 = offlineContext.suspend() did not throw exception. | 8 PASS p1 = offlineContext.suspend() did not throw exception. |
9 PASS [object Promise] is an instance of function Promise() { [native code] } | 9 PASS [object Promise] is an instance of function Promise() { [native code] } |
10 PASS offlineContext.suspend() was correctly rejected: InvalidAccessError: cannot suspend an OfflineAudioContext | 10 PASS offlineContext.suspend() was correctly rejected: TypeError: Failed to execu te 'suspend' on 'OfflineAudioContext': 1 argument required, but only 0 present. |
11 PASS p2 = offlineContext.resume() did not throw exception. | 11 PASS p2 = offlineContext.resume() did not throw exception. |
12 PASS [object Promise] is an instance of function Promise() { [native code] } | 12 PASS [object Promise] is an instance of function Promise() { [native code] } |
13 PASS offlineContext.state is "suspended" | 13 PASS offlineContext.state is "suspended" |
14 PASS offlineContext.resume() was correctly rejected: InvalidAccessError: cannot resume an OfflineAudioContext | 14 PASS offlineContext.resume() was correctly rejected: InvalidStateError: cannot r esume the context is already running or has not started |
15 PASS p3 = offlineContext.startRendering() did not throw exception. | 15 PASS p3 = offlineContext.startRendering() did not throw exception. |
16 PASS offlineContext.state is "closed" | 16 PASS offlineContext.state is "closed" |
17 PASS offlineContext.suspend() on a closed context rejected: InvalidAccessError: cannot suspend an OfflineAudioContext | 17 PASS offlineContext.suspend() on a closed context rejected: InvalidStateError: c annot schedule a suspend in the past, beyond the total render duration or at the duplicate position. |
Raymond Toy
2015/05/28 16:37:34
It would be nice if three different messages were
hongchan
2015/06/09 20:49:58
Good idea. I will try to be more specific on these
| |
18 PASS offlineContext.resume() on a closed context rejected: InvalidAccessError: c annot resume an OfflineAudioContext | 18 PASS offlineContext.resume() on a closed context rejected: InvalidStateError: ca nnot resume the context is already running or has not started |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |