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

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

Issue 625363004: Implement suspend/resume for AudioContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build error. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
diff --git a/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt b/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7c1a1960df3315900a823a9c2d59ab5d6b1f148e
--- /dev/null
+++ b/LayoutTests/webaudio/audiocontext-suspend-resume-expected.txt
@@ -0,0 +1,23 @@
+Test suspend/resume for an AudioContext
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS context.state is "paused"
+PASS context.suspend() did not throw exception.
+PASS context.suspend() did not throw exception.
+PASS p1 = context.resume() did not throw exception.
+PASS [object Object] is an instance of function Promise() { [native code] }
+PASS p2 = context.resume() did not throw exception.
+PASS [object Object] is an instance of function Promise() { [native code] }
+PASS Promises from resume are not equal.
+PASS context.state is "paused"
+PASS Context resumed correctly.
+PASS Context resumed correctly.
+PASS context.state is "released"
+PASS context.suspend() threw exception InvalidStateError: Failed to execute 'suspend' on 'AudioContext': cannot suspend an AudioContext that has been released.
+PASS resume() on a released context rejected as expected
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698