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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/internals/audiosummingjunction-crash.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/audiosummingjunction-crash.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/internals/audiosummingjunction-crash.html b/third_party/WebKit/LayoutTests/webaudio/internals/audiosummingjunction-crash.html
index 2d211d3215b95ea3be01d092a02b398d919dd784..cab47599986004d44877dce6bd059689b8721d76 100644
--- a/third_party/WebKit/LayoutTests/webaudio/internals/audiosummingjunction-crash.html
+++ b/third_party/WebKit/LayoutTests/webaudio/internals/audiosummingjunction-crash.html
@@ -1,26 +1,35 @@
-<body>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../resources/audit.js"></script>
-<script>
-let audit = Audit.createTaskRunner();
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>
+ audiosummingjunction-crash.html
+ </title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../resources/audit.js"></script>
+ </head>
+ <body>
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
-audit.define(
- {
- label: 'test',
- description:
- 'Test connection from ChannelMerger to MediaStreamAudioDestination'
- },
- (task, should) => {
- let context = new AudioContext();
- let node = context.createChannelMerger(4);
- node.connect(context.createMediaStreamDestination(), 0);
- gc();
- // Test passes if we get here because we didn't crash
- should(true, 'Test survived GC').message('correctly', 'incorrectly');
- task.done();
- });
+ audit.define(
+ {
+ label: 'test',
+ description:
+ 'Test connection from ChannelMerger to MediaStreamAudioDestination'
+ },
+ (task, should) => {
+ let context = new AudioContext();
+ let node = context.createChannelMerger(4);
+ node.connect(context.createMediaStreamDestination(), 0);
+ gc();
+ // Test passes if we get here because we didn't crash
+ should(true, 'Test survived GC')
+ .message('correctly', 'incorrectly');
+ task.done();
+ });
-audit.run();
-</script>
-</body>
+ audit.run();
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698