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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/internals/cycle-connection-gc.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/internals/cycle-connection-gc.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/internals/cycle-connection-gc.html b/third_party/WebKit/LayoutTests/webaudio/internals/cycle-connection-gc.html
index 027305026b21916003f911f5da94d124b4b1b08b..caa12aad9a6353dafe4c02a98736c44efc908652 100644
--- a/third_party/WebKit/LayoutTests/webaudio/internals/cycle-connection-gc.html
+++ b/third_party/WebKit/LayoutTests/webaudio/internals/cycle-connection-gc.html
@@ -1,24 +1,33 @@
<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<script>
-description('Cycles of AudioNode connections should be collected.');
-var context = new OfflineAudioContext(2, 44100, 44100);
-gc();
-var initialCount = internals.audioHandlerCount();
-createCycle();
-debug('A cycle was created:');
-shouldBeTrue('internals.audioHandlerCount() > initialCount');
-gc();
-debug('GC happened:');
-shouldBe('internals.audioHandlerCount()', 'initialCount');
+<html>
+ <head>
+ <title>
+ cycle-connection-gc.html
+ </title>
+ <script src="../../resources/js-test.js"></script>
+ </head>
+ <body>
+ <script id="layout-test-code">
+ description('Cycles of AudioNode connections should be collected.');
+ let context = new OfflineAudioContext(2, 44100, 44100);
+ gc();
+ let initialCount = internals.audioHandlerCount();
+ createCycle();
+ debug('A cycle was created:');
+ shouldBeTrue('internals.audioHandlerCount() > initialCount');
+ gc();
+ debug('GC happened:');
+ shouldBe('internals.audioHandlerCount()', 'initialCount');
-function createCycle() {
- var source = context.createBufferSource();
- var delay1 = context.createDelay();
- var delay2 = context.createDelay();
- source.connect(delay1);
- delay1.connect(delay2);
- delay2.connect(delay1);
- delay1.connect(context.destination);
-}
-</script>
+ function createCycle() {
+ let source = context.createBufferSource();
+ let delay1 = context.createDelay();
+ let delay2 = context.createDelay();
+ source.connect(delay1);
+ delay1.connect(delay2);
+ delay2.connect(delay1);
+ delay1.connect(context.destination);
+ }
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698