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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.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-max-contexts.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
index 4ff30e0768957080b90de9788e14c2ceabf91cba..fca287171dd652288f5921bcb9008e3751b79c84 100644
--- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
+++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-max-contexts.html
@@ -1,41 +1,45 @@
<!DOCTYPE html>
<html>
-<head>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../resources/audit-util.js"></script>
-<script src="../resources/audit.js"></script>
-</head>
-<body>
-<script>
-let audit = Audit.createTaskRunner();
+ <head>
+ <title>
+ audiocontext-max-contexts.html
+ </title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../resources/audit-util.js"></script>
+ <script src="../resources/audit.js"></script>
+ </head>
+ <body>
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
-let contextsToCreate = 10;
+ let contextsToCreate = 10;
-function reachHardwareContextsLimit() {
- let context = [];
- for (let i = 0; i < contextsToCreate; ++i)
- context[i] = new AudioContext();
-}
+ function reachHardwareContextsLimit() {
+ let context = [];
+ for (let i = 0; i < contextsToCreate; ++i)
+ context[i] = new AudioContext();
+ }
-audit.define(
- {
- label: 'hardware-context-limit',
- description: 'AudioContext throws when hardware context limit is reached'
- },
- function(task, should) {
- should(
- function() {
- reachHardwareContextsLimit();
+ audit.define(
+ {
+ label: 'hardware-context-limit',
+ description:
+ 'AudioContext throws when hardware context limit is reached'
},
- 'Create ' + contextsToCreate + ' concurrent AudioContext\'s')
- .throw('NotSupportedError');
+ function(task, should) {
+ should(
+ function() {
+ reachHardwareContextsLimit();
+ },
+ 'Create ' + contextsToCreate + ' concurrent AudioContext\'s')
+ .throw('NotSupportedError');
- task.done();
- });
+ task.done();
+ });
-audit.run();
-</script>
-</body>
+ audit.run();
+ </script>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698