| Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html
|
| index 26bda2ab22fc8d8774bab2b0ec00445b5aa9e37f..c3a864dabdf69ad30cb933e12082c92f5276e1c7 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sine-sweep-snr.html
|
| @@ -2,21 +2,35 @@
|
| <html>
|
| <head>
|
| <title>Test Oscillator Node: sine</title>
|
| + <script src="../../resources/testharness.js"></script>
|
| + <script src="../../resources/testharnessreport.js"></script>
|
| + <script src="../resources/audit-util.js"></script>
|
| + <script src="../resources/audit.js"></script>
|
| <script src="../resources/buffer-loader.js"></script>
|
| - <script src="../../resources/js-test.js"></script>
|
| <script src="../resources/oscillator-testing.js"></script>
|
| </head>
|
|
|
| <body>
|
| <script>
|
| - description("Test Sine Oscillator with Exponential Sweep");
|
| -
|
| - var tester = OscillatorTestingUtils;
|
| + let audit = Audit.createTaskRunner();
|
| + let tester = OscillatorTestingUtils;
|
|
|
| - // The thresholds are experimentally determined.
|
| - tester.setThresholds({snr: 81.05, maxDiff: 6.78, diffCount: 17608});
|
| - tester.runTest("sine");
|
| - successfullyParsed = true;
|
| + audit.define("test", (task, should) => {
|
| + let context = new OfflineAudioContext(1, tester.sampleRate *
|
| + tester.lengthInSeconds, tester.sampleRate);
|
| +
|
| + // The thresholds are experimentally determined.
|
| + tester.setThresholds({
|
| + snr: 81.05,
|
| + maxDiff: 6.78,
|
| + diffCount: 17608
|
| + });
|
| + tester.runTest(context, "sine",
|
| + "Sine Oscillator with Exponential Sweep",
|
| + task, should);
|
| + });
|
| +
|
| + audit.run();
|
| </script>
|
| </body>
|
| </html>
|
|
|