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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.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-ended.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
index 456ccf6f7db770693c81c3e7e3d20d2b043eb020..343d846905cea83149302ee04f0fa18fe5d3737e 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioBufferSource/audiobuffersource-ended.html
@@ -1,34 +1,40 @@
<!DOCTYPE html>
-<head>
+<html>
+ <head>
+ <title>
+ audiobuffersource-ended.html
+ </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="../resources/audiobuffersource-testing.js"></script>
-</head>
-<body>
- <script>
+ </head>
+ <body>
+ <script id="layout-test-code">
let audit = Audit.createTaskRunner();
let context;
let source;
- audit.define("AudioBufferSourceNode calls its onended EventListener",
- function (task, should) {
- let sampleRate = 44100.0;
- let numberOfFrames = 32;
- context = new OfflineAudioContext(1, numberOfFrames, sampleRate);
- source = context.createBufferSource();
- source.buffer = createTestBuffer(context, numberOfFrames);
- source.connect(context.destination);
- source.onended = function () {
- should(true, "source.onended called").beTrue();
- task.done();
- };
- source.start(0);
- context.startRendering();
- });
+ audit.define(
+ 'AudioBufferSourceNode calls its onended EventListener',
+ function(task, should) {
+ let sampleRate = 44100.0;
+ let numberOfFrames = 32;
+ context = new OfflineAudioContext(1, numberOfFrames, sampleRate);
+ source = context.createBufferSource();
+ source.buffer = createTestBuffer(context, numberOfFrames);
+ source.connect(context.destination);
+ source.onended = function() {
+ should(true, 'source.onended called').beTrue();
+ task.done();
+ };
+ source.start(0);
+ context.startRendering();
+ });
audit.run();
</script>
-</body>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698