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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-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/Oscillator/oscillator-ended.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
index 506eeb0d9a5697915a40751fb55b11b0b65344f6..0465ca74c2c6e0ddd262ecceb84696935dbc9ed4 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-ended.html
@@ -1,37 +1,41 @@
<!DOCTYPE html>
-<head>
+<html>
+ <head>
+ <title>
+ oscillator-ended.html
+ </title>
<script src="../../resources/testharness.js"></script>
- <script src="../../resources/testharnessreport.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>
- var audit = Audit.createTaskRunner();
+ </head>
+ <body>
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
- var context;
- var source;
+ let context;
+ let source;
- audit.define("test", function (task, should) {
+ audit.define('test', function(task, should) {
- var sampleRate = 44100.0;
- var lengthInSeconds = 0.1;
- context = new OfflineAudioContext(1, sampleRate * lengthInSeconds, sampleRate);
- osc = context.createOscillator();
- osc.type = "sine";
- osc.connect(context.destination);
- osc.onended = function()
- {
- should(true, "osc.onended was called")
- .beTrue();
- task.done();
- };
- osc.start(0);
- osc.stop(0.1);
- context.startRendering();
- });
+ let sampleRate = 44100.0;
+ let lengthInSeconds = 0.1;
+ context = new OfflineAudioContext(
+ 1, sampleRate * lengthInSeconds, sampleRate);
+ osc = context.createOscillator();
+ osc.type = 'sine';
+ osc.connect(context.destination);
+ osc.onended = function() {
+ should(true, 'osc.onended was called').beTrue();
+ task.done();
+ };
+ osc.start(0);
+ osc.stop(0.1);
+ context.startRendering();
+ });
- audit.run();
+ audit.run();
</script>
-</body>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698