Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 Basic test for OfflineAudioContext.suspend() and OfflineAudioContext.resume(). | 1 Basic test for OfflineAudioContext.suspend() and OfflineAudioContext.resume(). |
| 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 context.suspend() rejected correctly (with TypeError: Failed to execute 'su spend' on 'OfflineAudioContext': 1 argument required, but only 0 present.). | 6 PASS context.suspend() rejected correctly (with TypeError: Failed to execute 'su spend' on 'OfflineAudioContext': 1 argument required, but only 0 present.). |
| 7 PASS context.suspend(-1.0) rejected correctly (with InvalidStateError: negative suspend time (-1) is not allowed). | 7 PASS context.suspend(-1.0) rejected correctly (with InvalidStateError: negative suspend time (-1) is not allowed). |
| 8 PASS context.suspend(2.0) rejected correctly (with InvalidStateError: cannot sch edule a suspend at frame 88192 (2 seconds) because it is greater than or equal t o the total render duration of 44100 frames). | 8 PASS context.suspend(2.0) rejected correctly (with InvalidStateError: cannot sch edule a suspend at frame 88192 (2 seconds) because it is greater than or equal t o the total render duration of 44100 frames). |
| 9 PASS Scheduling a suspend in the past rejected correctly (with InvalidStateError : cannot schedule a suspend at frame 17536 (0.399229 seconds) because it is earl ier than the current frame of 22016 (0.499229 seconds)). | 9 PASS Scheduling a suspend in the past rejected correctly (with InvalidStateError : suspend(0.399229) failed to suspend at frame 17536 because it is earlier than the current frame of 22016 (0.499229 seconds)). |
|
Raymond Toy
2017/01/31 20:43:43
Although not caused by this CL, but can you explai
Raymond Toy
2017/01/31 21:18:05
Oh, right! The test is suspending at currentTime
| |
| 10 PASS Scheduling a suspend in the future resolved correctly. | 10 PASS Scheduling a suspend in the future resolved correctly. |
| 11 PASS Scheduling a suspend after the render completion rejected correctly (with I nvalidStateError: suspend(1) failed to suspend at frame 44032 because it is earl ier than the current frame of 44100 (1 seconds)). | |
| 11 PASS Scheduling a suspend at frame 128 was successful. | 12 PASS Scheduling a suspend at frame 128 was successful. |
| 12 PASS Scheduling another suspend at the same rendering quantum rejected correctly (with InvalidStateError: cannot schedule more than one suspend at frame 128 (0. 00435374 seconds)). | 13 PASS Scheduling another suspend at the same rendering quantum rejected correctly (with InvalidStateError: cannot schedule more than one suspend at frame 128 (0. 00435374 seconds)). |
| 13 PASS Scheduling a suspend at 4.5 seconds. | 14 PASS Scheduling a suspend at 4.5 seconds. |
| 14 PASS Resuming a running context resolved correctly. | 15 PASS Resuming a running context resolved correctly. |
| 15 PASS Resuming a context without starting it rejected correctly (with InvalidStat eError: cannot resume an offline context that has not started). | 16 PASS Resuming a context without starting it rejected correctly (with InvalidStat eError: cannot resume an offline context that has not started). |
| 16 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
| 17 | 18 |
| 18 TEST COMPLETE | 19 TEST COMPLETE |
| 19 | 20 |
| OLD | NEW |