Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-triangle-sweep-snr.html |
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-triangle-sweep-snr.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-triangle-sweep-snr.html |
index 5d0366d6058e087e5e9d27e7ad4094b3ccf13c89..733295f181e6c711a4fe06895b275f1401b1ee7a 100644 |
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-triangle-sweep-snr.html |
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/osc-triangle-sweep-snr.html |
@@ -1,31 +1,30 @@ |
-<!doctype html> |
+<!DOCTYPE html> |
<html> |
<head> |
- <title>Test Oscillator Node: triangle</title> |
+ <title> |
+ Test Oscillator Node: triangle |
+ </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(); |
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.92, |
- maxDiff: 0.00005 |
- }); |
- tester.runTest(context, "triangle", |
- "Triangle Oscillator with Exponential Sweep ", task, should); |
+ tester.setThresholds({snr: 93.92, maxDiff: 0.00005}); |
+ tester.runTest( |
+ context, 'triangle', 'Triangle Oscillator with Exponential Sweep ', |
+ task, should); |
}); |
audit.run(); |