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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.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/AudioBufferSource/audiobuffersource-one-sample-loop.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
index af2366d47cf0b86fc5f2c0a3197bf34642452c5f..9d336b1575710241aad3fdbb9ac30bbd0487b2e1 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-one-sample-loop.html
@@ -1,24 +1,25 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test AudioBufferSourceNode With Looping a Single-Sample Buffer</title>
+ <title>
+ Test AudioBufferSourceNode With Looping a Single-Sample Buffer
+ </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>
+ <script id="layout-test-code">
let audit = Audit.createTaskRunner();
let sampleRate = 44100;
let testDurationSamples = 1000;
- audit.define("one-sample-loop", function (task, should) {
+ audit.define('one-sample-loop', function(task, should) {
// Create the offline context for the test.
- let context = new OfflineAudioContext(1, testDurationSamples,
- sampleRate);
+ let context =
+ new OfflineAudioContext(1, testDurationSamples, sampleRate);
// Create the single sample buffer
let buffer = createConstantBuffer(context, 1, 1);
@@ -32,11 +33,12 @@
// Render it!
context.startRendering()
- .then(function(audioBuffer) {
- should(audioBuffer.getChannelData(0), "Rendered data")
- .beConstantValueOf(1);
- })
- .then(task.done.bind(task));;
+ .then(function(audioBuffer) {
+ should(audioBuffer.getChannelData(0), 'Rendered data')
+ .beConstantValueOf(1);
+ })
+ .then(task.done.bind(task));
+ ;
});
audit.run();

Powered by Google App Engine
This is Rietveld 408576698