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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Gain/gain-basic.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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2
3 <!-- 2 <!--
4 Verifies GainNode attributes and their type. 3 Verifies GainNode attributes and their type.
5 --> 4 -->
5 <html>
6 <head>
7 <title>
8 gain-basic.html
9 </title>
10 <script src="../../resources/testharness.js"></script>
11 <script src="../../resources/testharnessreport.js"></script>
12 <script src="../resources/audit-util.js"></script>
13 <script src="../resources/audit.js"></script>
14 </head>
15 <body>
16 <script id="layout-test-code">
17 let audit = Audit.createTaskRunner();
6 18
7 <html> 19 audit.define('test', function(task, should) {
8 <head> 20 // Create audio context.
9 <script src="../../resources/testharness.js"></script> 21 let context = new AudioContext();
10 <script src="../../resources/testharnessreport.js"></script>
11 <script src="../resources/audit-util.js"></script>
12 <script src="../resources/audit.js"></script>
13 22
14 </head> 23 // Create gain node.
15 <body> 24 let gainNode = context.createGain();
16 25
17 <script> 26 should(
18 let audit = Audit.createTaskRunner(); 27 gainNode.gain instanceof AudioParam,
28 'gainNode.gain instanceof AudioParam')
29 .beTrue();
19 30
20 audit.define('test', function(task, should) { 31 task.done();
21 // Create audio context. 32 });
22 let context = new AudioContext();
23 33
24 // Create gain node. 34 audit.run();
25 let gainNode = context.createGain(); 35 </script>
26 36 </body>
27 should(
28 gainNode.gain instanceof AudioParam,
29 'gainNode.gain instanceof AudioParam')
30 .beTrue();
31
32 task.done();
33 });
34
35 audit.run();
36 </script>
37
38 </body>
39 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698