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

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

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Fixes to WebAudioDeviceImpl unit test. Created 3 years, 10 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: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html
index 15524fd9952a8033acc24311cd3ee66ade7dbf80..52b865ae442b55944a20c0763344179922069a53 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html
@@ -137,6 +137,30 @@
.then(task.done.bind(task));
});
+ // Task: test online context (4).
+ audit.define('test-online-context-4', function (task, should) {
+ task.describe("Test closed online context 4");
+ // Create a context and verify that its sampleRate and baseLatency return
+ // valid values whether it's open or closed.
+ should(() => context = new AudioContext(),
+ "context = new AudioContext()")
+ .notThrow();
+ should(context.sampleRate, "context.sampleRate")
+ .beGreaterThan("0");
+ should(context.sampleRate, "context.baseLatency")
+ .beGreaterThan("0");
+
+ should(context.close(), "context.close()")
+ .beResolved()
+ .then(() => {
+ should(context.sampleRate, "context.sampleRate")
+ .beGreaterThan("0");
+ should(context.sampleRate, "context.baseLatency")
+ .beGreaterThan("0");
+ })
+ .then(task.done.bind(task));
+ });
+
// Task: test offline context (1).
audit.define('test-offline-context-1', function (task, should) {
task.describe("Test offline context");

Powered by Google App Engine
This is Rietveld 408576698