Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bring ToT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Test suspend/resume for an (offline) AudioContext 1 Test suspend/resume for an 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 typeof context.suspend() is equal to function.
7 PASS offlineContext.state is "suspended" 7 PASS typeof context.resume() is equal to function.
8 PASS p1 = offlineContext.suspend() did not throw exception. 8 PASS context.suspend() resolved correctly.
9 PASS p1 is an instance of Promise 9 PASS Calling multiple context.suspend() did not throw an exception.
10 PASS offlineContext.suspend() was correctly rejected: InvalidAccessError: cannot suspend an OfflineAudioContext 10 PASS Calling context.suspend() after close() rejected correctly (with InvalidSta teError: Cannot suspend a context that has been closed).
11 PASS p2 = offlineContext.resume() did not throw exception. 11 PASS Calling context.resume() after close() rejected correctly (with InvalidAcce ssError: cannot resume a closed AudioContext).
12 PASS p2 is an instance of Promise
13 PASS offlineContext.state is "suspended"
14 PASS offlineContext.resume() was correctly rejected: InvalidAccessError: cannot resume an OfflineAudioContext
15 PASS p3 = offlineContext.startRendering() did not throw exception.
16 PASS offlineContext.state is "closed"
17 PASS offlineContext.suspend() on a closed context rejected: InvalidAccessError: cannot suspend an OfflineAudioContext
18 PASS offlineContext.resume() on a closed context rejected: InvalidAccessError: c annot resume an OfflineAudioContext
19 PASS successfullyParsed is true 12 PASS successfullyParsed is true
20 13
21 TEST COMPLETE 14 TEST COMPLETE
22 15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698