Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html
index 0f69ad658909d1c0e363dcf68c328eec3c4f9ef8..b9643799d7e0667974aff84f8f6bd42ebd4b384a 100644
--- a/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html
+++ b/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/biquad-lowpass.html
@@ -1,44 +1,45 @@
<!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 lowpass 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 : 1, gain : 1 },
- {cutoff : 1, q : 1, gain : 1 },
- {cutoff : 0.25, q : 1, gain : 1 },
- {cutoff : 0.25, q : 1, gain : 1, detune : 100 },
- {cutoff : 0.01, q : 1, gain : 1, detune : -200 },
- ];
-
- createTestAndRun(context, "lowpass", {
- should: should,
- threshold: 9.7869e-8,
- filterParameters: filterParameters
- }).then(task.done.bind(task));
-});
-
-audit.run();
-</script>
-
-</body>
+ <head>
+ <title>
+ biquad-lowpass.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 lowpass 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: 1, gain: 1},
+ {cutoff: 1, q: 1, gain: 1},
+ {cutoff: 0.25, q: 1, gain: 1},
+ {cutoff: 0.25, q: 1, gain: 1, detune: 100},
+ {cutoff: 0.01, q: 1, gain: 1, detune: -200},
+ ];
+
+ createTestAndRun(context, 'lowpass', {
+ should: should,
+ threshold: 9.7869e-8,
+ filterParameters: filterParameters
+ }).then(task.done.bind(task));
+ });
+
+ audit.run();
+ </script>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698