| Index: third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-gc.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-gc.html b/third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-gc.html
|
| index 9bb4bfd2a715728dfe7b98035c757333926011a8..59f9af228c282fcc11ec7de8c8d840f141065ed6 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-gc.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-gc.html
|
| @@ -1,39 +1,37 @@
|
| <!DOCTYPE html>
|
| -
|
| <html>
|
| -<head>
|
| -<script src="../../resources/js-test.js"></script>
|
| -<script src="../resources/audit-util.js"></script>
|
| -</head>
|
| -
|
| -<body>
|
| -<div id="description"></div>
|
| -<div id="console"></div>
|
| -
|
| -<script>
|
| -description("Tests garbage collection of MediaElementAudioSourceNode.");
|
| -
|
| -function runTest() {
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - }
|
| -
|
| - audioElement = document.createElement("audio");
|
| - context = new OfflineAudioContext(1, 1000, 44100);
|
| - source = context.createMediaElementSource(audioElement);
|
| - audioElement = null;
|
| - context = null;
|
| - source = null;
|
| - gc();
|
| -
|
| - testPassed("MediaElementAudioSourceNode survived garbage collection.");
|
| -
|
| - finishJSTest();
|
| -}
|
| -
|
| -runTest();
|
| -
|
| -</script>
|
| -
|
| -</body>
|
| + <head>
|
| + <title>
|
| + mediaelementaudiosourcenode-gc.html
|
| + </title>
|
| + <script src="../../resources/js-test.js"></script>
|
| + <script src="../resources/audit-util.js"></script>
|
| + </head>
|
| + <body>
|
| + <div id="description"></div>
|
| + <div id="console"></div>
|
| + <script id="layout-test-code">
|
| + description('Tests garbage collection of MediaElementAudioSourceNode.');
|
| +
|
| + function runTest() {
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + }
|
| +
|
| + audioElement = document.createElement('audio');
|
| + context = new OfflineAudioContext(1, 1000, 44100);
|
| + source = context.createMediaElementSource(audioElement);
|
| + audioElement = null;
|
| + context = null;
|
| + source = null;
|
| + gc();
|
| +
|
| + testPassed('MediaElementAudioSourceNode survived garbage collection.');
|
| +
|
| + finishJSTest();
|
| + }
|
| +
|
| + runTest();
|
| + </script>
|
| + </body>
|
| </html>
|
|
|