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