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