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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html

Issue 2334773003: Support sample rates up to 384 kHz. (Closed)
Patch Set: Rebase and fix up histograms.xml Created 4 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: third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html b/third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html
index 8f0332fbb012756f203f88170d714adac5737af2..b80d5d1912f853df213311c7ccdffd95d42477c4 100644
--- a/third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html
+++ b/third_party/WebKit/LayoutTests/webaudio/offlineaudiocontext-constructor.html
@@ -12,10 +12,12 @@ var context;
// Make sure we don't crash when giving 0 as number of frames.
shouldThrow("new OfflineAudioContext(1, 0, 44100)");
// Make sure we don't throw exceptions for supported ranges of sample rates for an OfflineAudioContext.
+shouldThrow("context = new OfflineAudioContext(2, 512, 2999)");
shouldNotThrow("context = new OfflineAudioContext(2, 512, 3000)");
-shouldBeEqualToNumber("context.length", 512);
-shouldNotThrow("context = new OfflineAudioContext(2, 1024, 192000)");
+shouldBeEqualToNumber("context.length", 512);
+shouldNotThrow("context = new OfflineAudioContext(2, 1024, 384000)");
shouldBeEqualToNumber("context.length", 1024);
+shouldThrow("context = new OfflineAudioContext(2, 1024, 384001)");
shouldNotThrow("context = new OfflineAudioContext(2, 2048, 8000)");
shouldBeEqualToNumber("context.length", 2048);
shouldNotThrow("context = new OfflineAudioContext(2, 4096, 11025)");

Powered by Google App Engine
This is Rietveld 408576698