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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.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/ConstantSource/constant-source-onended.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html b/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
index b0960a8a039b555d3ea7dc97942b2c7dda4a2bbe..87decf58da456ad63fb6e79e05ac6af9f4508f06 100644
--- a/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
+++ b/third_party/WebKit/LayoutTests/webaudio/ConstantSource/constant-source-onended.html
@@ -1,29 +1,30 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>Test ConstantSourceNode onended</title>
+ <title>
+ Test ConstantSourceNode onended
+ </title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
</head>
-
<body>
- <script>
- var sampleRate = 44100.0;
+ <script id="layout-test-code">
+ let sampleRate = 44100.0;
// Number of frames that the source will run; fairly arbitrary
- var numberOfFrames = 32;
+ let numberOfFrames = 32;
// Number of frames to render; arbitrary, but should be larger than
// numberOfFrames;
- var renderFrames = 16 * numberOfFrames;
+ let renderFrames = 16 * numberOfFrames;
- var context = new OfflineAudioContext(1, renderFrames, sampleRate);
- var src = new ConstantSourceNode(context);
+ let context = new OfflineAudioContext(1, renderFrames, sampleRate);
+ let src = new ConstantSourceNode(context);
src.connect(context.destination);
- var tester = async_test("ConstantSourceNode onended event fired");
+ let tester = async_test('ConstantSourceNode onended event fired');
- src.onended = function () {
- tester.step(function () {
- assert_true(true, "ConstantSourceNode.onended fired");
+ src.onended = function() {
+ tester.step(function() {
+ assert_true(true, 'ConstantSourceNode.onended fired');
});
tester.done();
};
@@ -32,7 +33,6 @@
src.stop(numberOfFrames / context.sampleRate);
context.startRendering();
-
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698