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> |