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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt

Issue 1405413004: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating UseCounter.h after L-G-T-M Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
diff --git a/third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt b/third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
index 0eede07edbcdc8494fc1d03d4d73991ba2e50d5b..cc4a1e7f29f95f26c78fe7cb0f4b558a584b1d8f 100644
--- a/third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
+++ b/third_party/WebKit/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
@@ -7,15 +7,15 @@ PASS offlineContext = new OfflineAudioContext(1, durationInSeconds * sampleRate,
PASS offlineContext.state is "suspended"
PASS p1 = offlineContext.suspend() did not throw exception.
PASS p1 is an instance of Promise
-PASS offlineContext.suspend() was correctly rejected: InvalidAccessError: cannot suspend an OfflineAudioContext
+PASS offlineContext.suspend() was correctly rejected: TypeError: Failed to execute 'suspend' on 'OfflineAudioContext': 1 argument required, but only 0 present.
PASS p2 = offlineContext.resume() did not throw exception.
PASS p2 is an instance of Promise
PASS offlineContext.state is "suspended"
-PASS offlineContext.resume() was correctly rejected: InvalidAccessError: cannot resume an OfflineAudioContext
+PASS offlineContext.resume() was correctly rejected: InvalidStateError: cannot resume an offline context that has not started
PASS p3 = offlineContext.startRendering() did not throw exception.
PASS offlineContext.state is "closed"
-PASS offlineContext.suspend() on a closed context rejected: InvalidAccessError: cannot suspend an OfflineAudioContext
-PASS offlineContext.resume() on a closed context rejected: InvalidAccessError: cannot resume an OfflineAudioContext
+PASS offlineContext.suspend() on a closed context rejected: TypeError: Failed to execute 'suspend' on 'OfflineAudioContext': 1 argument required, but only 0 present.
+PASS offlineContext.resume() on a closed context rejected: InvalidStateError: cannot resume a closed offline context
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698