| Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sawtooth-sweep-snr.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sawtooth-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sawtooth-sweep-snr.html
|
| index 5015fd747df809cb2b37bea11ba6043c62a93522..a38d206285b4d3b0910d69ac739dd8e2ec135a94 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sawtooth-sweep-snr.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-sawtooth-sweep-snr.html
|
| @@ -2,21 +2,35 @@
|
| <html>
|
| <head>
|
| <title>Test Oscillator Node: sawtooth</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 Sawtooth Oscillator with Exponential Sweep");
|
| + let audit = Audit.createTaskRunner();
|
| + let tester = OscillatorTestingUtils;
|
|
|
| - var tester = OscillatorTestingUtils;
|
| + audit.define("test", (task, should) => {
|
| + let context = new OfflineAudioContext(1, tester.sampleRate *
|
| + tester.lengthInSeconds, tester.sampleRate);
|
|
|
| - // The thresholds are experimentally determined.
|
| - tester.setThresholds({snr: 80.00, maxDiff: 4.06, diffCount: 15827});
|
| - tester.runTest("sawtooth");
|
| - successfullyParsed = true;
|
| + // The thresholds are experimentally determined.
|
| + tester.setThresholds({
|
| + snr: 80.00,
|
| + maxDiff: 4.06,
|
| + diffCount: 15827
|
| + });
|
| + tester.runTest(context, "sawtooth",
|
| + "Sawtooth Oscillator with Exponential Sweep",
|
| + task, should);
|
| + });
|
| +
|
| + audit.run();
|
| </script>
|
| </body>
|
| </html>
|
|
|