| Index: third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.html b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.html
|
| index 68d4567bfe131303f9c4cc6df86683a1c76ebca2..52511dc98d3dac201d2c1dd2910d21ab364962d7 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-highpass.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 highpass filter"
|
| -}, function (task, should) {
|
| - // Create offline audio context.
|
| - let context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
|
| + <head>
|
| + <title>
|
| + biquad-highpass.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();
|
|
|
| - // The filters we want to test.
|
| - let filterParameters = [{cutoff : 0, q : 1, gain : 1 },
|
| - {cutoff : 1, q : 1, gain : 1 },
|
| - {cutoff : 0.25, q : 1, gain : 1 },
|
| - ];
|
| + audit.define(
|
| + {label: 'test', description: 'Biquad highpass filter'},
|
| + function(task, should) {
|
| + // Create offline audio context.
|
| + let context = new OfflineAudioContext(
|
| + 2, sampleRate * renderLengthSeconds, sampleRate);
|
|
|
| - createTestAndRun(context, "highpass", {
|
| - should: should,
|
| - threshold: 1.5487e-8,
|
| - filterParameters: filterParameters
|
| - }).then(task.done.bind(task));
|
| -});
|
| + // The filters we want to test.
|
| + let filterParameters = [
|
| + {cutoff: 0, q: 1, gain: 1},
|
| + {cutoff: 1, q: 1, gain: 1},
|
| + {cutoff: 0.25, q: 1, gain: 1},
|
| + ];
|
|
|
| -audit.run();
|
| -</script>
|
| + createTestAndRun(context, 'highpass', {
|
| + should: should,
|
| + threshold: 1.5487e-8,
|
| + filterParameters: filterParameters
|
| + }).then(task.done.bind(task));
|
| + });
|
|
|
| -</body>
|
| + audit.run();
|
| + </script>
|
| + </body>
|
| </html>
|
|
|