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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/constructor/panner.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/panner.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/constructor/panner.html b/third_party/WebKit/LayoutTests/webaudio/constructor/panner.html
index d440bcac24f710d738d174af57b88f36389c2fb5..b600606bf51c526f530def6c6c77db0337f4fe47 100644
--- a/third_party/WebKit/LayoutTests/webaudio/constructor/panner.html
+++ b/third_party/WebKit/LayoutTests/webaudio/constructor/panner.html
@@ -1,19 +1,20 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test Constructor: Panner</title>
+ <title>
+ Test Constructor: Panner
+ </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);
@@ -75,11 +76,11 @@
audit.define('test AudioNodeOptions', (task, should) => {
// Can't use testAudioNodeOptions because the constraints for this node
// are not supported there.
- var node;
- var success = true;
+ let node;
+ let success = true;
// Test that we can set the channel count to 1 or 2.
- var options = {channelCount: 1};
+ let options = {channelCount: 1};
should(
() => {
node = new PannerNode(context, options);
@@ -195,9 +196,9 @@
});
audit.define('constructor with options', (task, should) => {
- var node;
- var success = true;
- var options = {
+ let node;
+ let success = true;
+ let options = {
panningModel: 'HRTF',
// We use full double float values here to verify also that the actual
// AudioParam value is properly rounded to a float. The actual value

Powered by Google App Engine
This is Rietveld 408576698