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