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> |