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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-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/AudioContext/audiocontext-listener-should-not-crash.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
index 22e14b6f930df78583df264bdbb21d46c9c1d4c1..a065fc2e4163cbd356b28abcd51b730dc458ffe6 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
@@ -1,27 +1,30 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
-<head>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../resources/audit.js"></script>
-</head>
-<body>
-<script>
-let audit = new Audit.createTaskRunner();
+ <head>
+ <title>
+ audiocontext-listener-should-not-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 = new Audit.createTaskRunner();
-audit.define("test", function (task, should) {
- let context = new AudioContext();
- should(context.listener instanceof AudioListener,
- "context.listener is AudioListener")
- .beTrue();
- should(function () {
- document.addEventListener(0, context);
- }, "document.addEventListener(0, context) should not crash")
- .notThrow();
- task.done();
-});
+ audit.define('test', function(task, should) {
+ let context = new AudioContext();
+ should(
+ context.listener instanceof AudioListener,
+ 'context.listener is AudioListener')
+ .beTrue();
+ should(function() {
+ document.addEventListener(0, context);
+ }, 'document.addEventListener(0, context) should not crash').notThrow();
+ task.done();
+ });
-audit.run();
-</script>
-</body>
+ audit.run();
+ </script>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698