| Index: third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
|
| index 2be7f8885239f9c052eaf4cc6d5954f3a6230087..0e601976a39087d516179aa3857ca072b5ea8cf9 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-allpass.html
|
| @@ -1,41 +1,42 @@
|
| <!DOCTYPE html>
|
| -
|
| <html>
|
| -<head>
|
| -<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/biquad-filters.js"></script>
|
| -<script src="../resources/biquad-testing.js"></script>
|
| -</head>
|
| -
|
| -<body>
|
| -<script>
|
| -let audit = Audit.createTaskRunner();
|
| -
|
| -audit.define({
|
| - label: "test",
|
| - description: "Biquad allpass filter"
|
| -}, function (task, should) {
|
| + <head>
|
| + <title>
|
| + biquad-allpass.html
|
| + </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/biquad-filters.js"></script>
|
| + <script src="../resources/biquad-testing.js"></script>
|
| + </head>
|
| + <body>
|
| + <script id="layout-test-code">
|
| + let audit = Audit.createTaskRunner();
|
|
|
| - // Create offline audio context.
|
| - let context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
|
| + audit.define(
|
| + {label: 'test', description: 'Biquad allpass filter'},
|
| + function(task, should) {
|
|
|
| - let filterParameters = [{cutoff : 0, q : 10, gain : 1 },
|
| - {cutoff : 1, q : 10, gain : 1 },
|
| - {cutoff : .5, q : 0, gain : 1 },
|
| - {cutoff : 0.25, q : 10, gain : 1 },
|
| - ];
|
| - createTestAndRun(context, "allpass", {
|
| - should: should,
|
| - threshold: 3.9337e-8,
|
| - filterParameters: filterParameters
|
| - }).then(task.done.bind(task));
|
| -});
|
| + // Create offline audio context.
|
| + let context = new OfflineAudioContext(
|
| + 2, sampleRate * renderLengthSeconds, sampleRate);
|
|
|
| -audit.run();
|
| -</script>
|
| + let filterParameters = [
|
| + {cutoff: 0, q: 10, gain: 1},
|
| + {cutoff: 1, q: 10, gain: 1},
|
| + {cutoff: .5, q: 0, gain: 1},
|
| + {cutoff: 0.25, q: 10, gain: 1},
|
| + ];
|
| + createTestAndRun(context, 'allpass', {
|
| + should: should,
|
| + threshold: 3.9337e-8,
|
| + filterParameters: filterParameters
|
| + }).then(task.done.bind(task));
|
| + });
|
|
|
| -</body>
|
| + audit.run();
|
| + </script>
|
| + </body>
|
| </html>
|
|
|