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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelay.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/Delay/delaynode-maxdelay.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelay.html b/third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelay.html
index 20b31fe8fa6c00c0b72acd82564371e6365b05f5..1bb8867e074ec831e6db41b17c8f6763d91a63be 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelay.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Delay/delaynode-maxdelay.html
@@ -1,54 +1,54 @@
<!DOCTYPE html>
-
<html>
-<head>
-<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/delay-testing.js"></script>
-</head>
-
-<body>
-<script>
-let audit = Audit.createTaskRunner();
-
-audit.define(
- {
- label: 'test',
- description:
- 'Basic functionality of DelayNode with a non-default max delay time'
- },
- function(task, should) {
-
- // Create offline audio context.
- var context = new OfflineAudioContext(
- 1, sampleRate * renderLengthSeconds, sampleRate);
- var toneBuffer = createToneBuffer(
- context, 20, 20 * toneLengthSeconds, sampleRate); // 20Hz tone
-
- var bufferSource = context.createBufferSource();
- bufferSource.buffer = toneBuffer;
-
- // Create a delay node with an explicit max delay time (greater than the
- // default of 1 second).
- var delay = context.createDelay(2);
- // Set the delay time to a value greater than the default max delay so we
- // can verify the delay is working for this case.
- delayTimeSeconds = 1.5;
- delay.delayTime.value = delayTimeSeconds;
-
- bufferSource.connect(delay);
- delay.connect(context.destination);
- bufferSource.start(0);
-
- context.startRendering()
- .then(buffer => checkDelayedResult(buffer, toneBuffer, should))
- .then(() => task.done());
- });
-
-audit.run();
-</script>
-
-</body>
+ <head>
+ <title>
+ delaynode-maxdelay.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/delay-testing.js"></script>
+ </head>
+ <body>
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
+
+ audit.define(
+ {
+ label: 'test',
+ description:
+ 'Basic functionality of DelayNode with a non-default max delay time'
+ },
+ function(task, should) {
+
+ // Create offline audio context.
+ let context = new OfflineAudioContext(
+ 1, sampleRate * renderLengthSeconds, sampleRate);
+ let toneBuffer = createToneBuffer(
+ context, 20, 20 * toneLengthSeconds, sampleRate); // 20Hz tone
+
+ let bufferSource = context.createBufferSource();
+ bufferSource.buffer = toneBuffer;
+
+ // Create a delay node with an explicit max delay time (greater than
+ // the default of 1 second).
+ let delay = context.createDelay(2);
+ // Set the delay time to a value greater than the default max delay
+ // so we can verify the delay is working for this case.
+ delayTimeSeconds = 1.5;
+ delay.delayTime.value = delayTimeSeconds;
+
+ bufferSource.connect(delay);
+ delay.connect(context.destination);
+ bufferSource.start(0);
+
+ context.startRendering()
+ .then(buffer => checkDelayedResult(buffer, toneBuffer, should))
+ .then(() => task.done());
+ });
+
+ audit.run();
+ </script>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698