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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/internals/mediaelementaudiosourcenode-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/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>

Powered by Google App Engine
This is Rietveld 408576698