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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html

Issue 2798973002: Resume() should return if context is already running (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html
index bbf470f6d459edc74ac9065faa14535b271696c6..c3a178d535c230de5199e84a936f584a4a4d874e 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-suspend-resume.html
@@ -117,6 +117,26 @@
});
});
+ audit.define({
+ label: 'resume-running-context',
+ description: 'Test resuming a running context'
+ }, (task, should) => {
+ let context;
+ should(() => context = new AudioContext(),
+ "Create online context")
hongchan 2017/04/05 21:44:42 Let's not mix single and double quote. We should u
Raymond Toy 2017/04/05 21:53:48 Too much c++.
+ .notThrow();
+
+ should(context.state, "context.state")
+ .beEqualTo("running");
+ should(context.resume(), "context.resume")
+ .beResolved()
+ .then(() => {
+ should(context.state, "context.state after resume")
+ .beEqualTo("running");
+ })
+ .then(() => task.done());
+ });
+
audit.run();
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698