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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.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 <html> 2 <html>
3 <head> 3 <head>
4 <title>
5 distance-exponential.html
6 </title>
4 <script src="../../resources/testharness.js"></script> 7 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 8 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit-util.js"></script> 9 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audit.js"></script> 10 <script src="../resources/audit.js"></script>
8 <script src="../resources/distance-model-testing.js"></script> 11 <script src="../resources/distance-model-testing.js"></script>
9 </head> 12 </head>
10
11 <body> 13 <body>
12 <script> 14 <script id="layout-test-code">
13 let audit = Audit.createTaskRunner(); 15 let audit = Audit.createTaskRunner();
14 16
15 audit.define( 17 audit.define(
16 { 18 {
17 label: 'test', 19 label: 'test',
18 description: 'Exponential distance model for PannerNode' 20 description: 'Exponential distance model for PannerNode'
19 }, 21 },
20 (task, should) => { 22 (task, should) => {
21 // Create offline audio context. 23 // Create offline audio context.
22 context = new OfflineAudioContext( 24 context = new OfflineAudioContext(
23 2, sampleRate * renderLengthSeconds, sampleRate); 25 2, sampleRate * renderLengthSeconds, sampleRate);
24 26
25 createTestAndRun(context, 'exponential', should) 27 createTestAndRun(context, 'exponential', should)
26 .then(() => task.done()); 28 .then(() => task.done());
27 }); 29 });
28 30
29 audit.run(); 31 audit.run();
30 </script> 32 </script>
31
32 </body> 33 </body>
33 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698