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

Unified Diff: LayoutTests/webaudio/waveshaper-oversample-4x.html

Issue 15619003: Add support for WaveShaperNode.oversample (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: change TestExpectations in middle of file Created 7 years, 7 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/waveshaper-oversample-4x.html
diff --git a/LayoutTests/webaudio/waveshaper-oversample-4x.html b/LayoutTests/webaudio/waveshaper-oversample-4x.html
new file mode 100644
index 0000000000000000000000000000000000000000..70851bd8dc838eabe4aec20a9061ebd6bc199061
--- /dev/null
+++ b/LayoutTests/webaudio/waveshaper-oversample-4x.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+<script src="../fast/js/resources/js-test-pre.js"></script>
+<script type="text/javascript" src="resources/audio-testing.js"></script>
+<script type="text/javascript" src="resources/mix-testing.js"></script>
+<script type="text/javascript" src="resources/waveshaper-testing.js"></script>
+</head>
+
+<body>
+
+<div id="description"></div>
+<div id="console"></div>
+
+<script>
+description("Tests 4x WaveShaperNode oversampling.");
+
+var testParams = {
+ "sampleRate": 44100,
+ "oversample": "4x",
+
+ // Should generate harmonics at 18000, 36000, 54000, 72000
+ // All except for 18000 should be filtered out with the 4x oversampling.
+ "fundamentalFrequency": 18000,
+ "acceptableAliasingThresholdDecibels": -85
+};
+runWaveShaperOversamplingTest(testParams);
+
+</script>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/webaudio/waveshaper-oversample-2x-expected.txt ('k') | LayoutTests/webaudio/waveshaper-oversample-4x-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698