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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-custom-sweep-snr.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/Oscillator/osc-custom-sweep-snr.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-custom-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-custom-sweep-snr.html
index f672a5e01be60593f9408ae9e57815ad075364ea..205e1b91bd6e88404ad5b11cca94b78122342dc8 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-custom-sweep-snr.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-custom-sweep-snr.html
@@ -1,31 +1,30 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test Oscillator Node: custom</title>
+ <title>
+ Test Oscillator Node: custom
+ </title>
<script src="../../resources/testharness.js"></script>
- <script src="../../resources/testharnessreport.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/oscillator-testing.js"></script>
</head>
-
<body>
- <script>
+ <script id="layout-test-code">
let audit = Audit.createTaskRunner();
- var tester = OscillatorTestingUtils;
+ let tester = OscillatorTestingUtils;
- audit.define("test", (task, should) => {
- let context = new OfflineAudioContext(1, tester.sampleRate *
- tester.lengthInSeconds, tester.sampleRate);
+ audit.define('test', (task, should) => {
+ let context = new OfflineAudioContext(
+ 1, tester.sampleRate * tester.lengthInSeconds, tester.sampleRate);
// The thresholds are experimentally determined.
- tester.setThresholds({
- snr: 93.445,
- maxDiff: 0.00004
- });
- tester.runTest(context, "custom",
- "Custom Oscillator with Exponential Sweep", task, should);
+ tester.setThresholds({snr: 93.445, maxDiff: 0.00004});
+ tester.runTest(
+ context, 'custom', 'Custom Oscillator with Exponential Sweep', task,
+ should);
});
audit.run();

Powered by Google App Engine
This is Rietveld 408576698