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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/event-constructor.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/event-constructor.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/event-constructor.html b/third_party/WebKit/LayoutTests/webaudio/event-constructor.html
index 7ea4c9966eb30a97789aec2b4155013859f954d8..dbe986f230b925ff9488ae7cf0f990ef8a2821ef 100644
--- a/third_party/WebKit/LayoutTests/webaudio/event-constructor.html
+++ b/third_party/WebKit/LayoutTests/webaudio/event-constructor.html
@@ -1,16 +1,17 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test Event Constructors</title>
+ <title>
+ Test Event Constructors
+ </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>
</head>
-
<body>
- <script>
- var audit = Audit.createTaskRunner();
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
audit.define('offline-constructor', (task, should) => {
should(function() {
@@ -35,8 +36,8 @@
'new OfflineAudioCompletionEvent("complete", {foo: 42})')
.throw('TypeError');
- var context = new OfflineAudioContext(1, 100, 48000);
- var buffer = new AudioBuffer(context, {length: 42});
+ let context = new OfflineAudioContext(1, 100, 48000);
+ let buffer = new AudioBuffer(context, {length: 42});
should(
function() {
@@ -52,12 +53,12 @@
audit.define('offline-event', (task, should) => {
// Only need the context for constructing the AudioBuffers for the
// tests.
- var context = new OfflineAudioContext(1, 100, 48000);
+ let context = new OfflineAudioContext(1, 100, 48000);
// Just an arbitrary AudioBuffer.
- var buffer = new AudioBuffer(context, {length: 10});
+ let buffer = new AudioBuffer(context, {length: 10});
- var event;
+ let event;
should(function() {
event =
new OfflineAudioCompletionEvent('foo', {renderedBuffer: buffer});
@@ -72,12 +73,12 @@
audit.define('audio-processing', (task, should) => {
// Only need the context for constructing the AudioBuffers for the
// tests.
- var context = new OfflineAudioContext(1, 100, 48000);
+ let context = new OfflineAudioContext(1, 100, 48000);
// Fairly arbitrary buffers and time
- var input = new AudioBuffer(context, {length: 10});
- var output = new AudioBuffer(context, {length: 20});
- var time = Math.PI;
+ let input = new AudioBuffer(context, {length: 10});
+ let output = new AudioBuffer(context, {length: 20});
+ let time = Math.PI;
// Verify required arguments.
should(function() {
@@ -121,7 +122,7 @@
// Finally test valid call
- var event;
+ let event;
should(
function() {
event = new AudioProcessingEvent('proc', {

Powered by Google App Engine
This is Rietveld 408576698