| Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
|
| index baa4eca96521dfd0bf2fb2a8375eb65f9c045d8a..ec4383b6fba515c0ae5aebd72cde10d7ac49301f 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-square-sweep-snr.html
|
| @@ -2,22 +2,34 @@
|
| <html>
|
| <head>
|
| <title>Test Oscillator Node: square</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 Square Oscillator with Exponential Sweep");
|
| + let audit = Audit.createTaskRunner();
|
| + let tester = OscillatorTestingUtils;
|
|
|
| - // Thresholds for verifying the test passes. The thresholds are experimentally determined.
|
| + audit.define("test", (task, should) => {
|
| + let context = new OfflineAudioContext(1, tester.sampleRate *
|
| + tester.lengthInSeconds, tester.sampleRate);
|
|
|
| - var tester = OscillatorTestingUtils;
|
| - // The thresholds are experimentally determined.
|
| - tester.setThresholds({snr: 81.57, maxDiff: 7.26, diffCount: 18260});
|
| - tester.runTest("square");
|
| - successfullyParsed = true;
|
| + // The thresholds are experimentally determined.
|
| + tester.setThresholds({
|
| + snr: 81.57,
|
| + maxDiff: 7.26,
|
| + diffCount: 18260
|
| + });
|
| + tester.runTest(context, "square",
|
| + "Square Oscillator with Exponential Sweep", task, should);
|
| + });
|
| +
|
| + audit.run();
|
| </script>
|
| </body>
|
| </html>
|
|
|