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

Unified Diff: LayoutTests/webaudio/waveshaper-oversample-2x.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-2x.html
diff --git a/LayoutTests/webaudio/waveshaper-oversample-2x.html b/LayoutTests/webaudio/waveshaper-oversample-2x.html
new file mode 100644
index 0000000000000000000000000000000000000000..46bc6c0452438390dcf5dcbc1eb44d5f8d4d9b7e
--- /dev/null
+++ b/LayoutTests/webaudio/waveshaper-oversample-2x.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 2x WaveShaperNode oversampling.");
+
+var testParams = {
+ "sampleRate": 44100,
+ "oversample": "2x",
+
+ // Should generate harmonics at 9000, 18000, 27000, 36000
+ // The last two should be filtered out with the 2x oversampling.
+ "fundamentalFrequency": 9000,
+ "acceptableAliasingThresholdDecibels": -85
+};
+runWaveShaperOversamplingTest(testParams);
+
+</script>
+
+<script src="../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/webaudio/resources/waveshaper-testing.js ('k') | LayoutTests/webaudio/waveshaper-oversample-2x-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698