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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/convolver.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/constructor/convolver.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/convolver.html b/third_party/WebKit/LayoutTests/webaudio/constructor/convolver.html
index 35e0e70b84a003b6b60f2b5e593e292d721a4beb..a09cf091c79cb366f6b951e6ade541ed7e7e3828 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/convolver.html
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/convolver.html
@@ -1,19 +1,20 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test Constructor: Convolver</title>
+ <title>
+ Test Constructor: Convolver
+ </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="audionodeoptions.js"></script>
</head>
-
<body>
- <script>
- var context;
+ <script id="layout-test-code">
+ let context;
- var audit = Audit.createTaskRunner();
+ let audit = Audit.createTaskRunner();
audit.define('initialize', (task, should) => {
context = initializeContext(should);
@@ -57,8 +58,8 @@
});
audit.define('nullable buffer', (task, should) => {
- var node;
- var options = {buffer: null};
+ let node;
+ let options = {buffer: null};
should(
() => {
@@ -73,13 +74,13 @@
});
audit.define('construct with options', (task, should) => {
- var buf = context.createBuffer(1, 1, context.sampleRate);
- var options = {buffer: buf, disableNormalization: false};
+ let buf = context.createBuffer(1, 1, context.sampleRate);
+ let options = {buffer: buf, disableNormalization: false};
- var message =
+ let message =
'node = new ConvolverNode(c, ' + JSON.stringify(options) + ')';
- var node;
+ let node;
should(() => {
node = new ConvolverNode(context, options);
}, message).notThrow();

Powered by Google App Engine
This is Rietveld 408576698