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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Panner/distance-exponential.html

Issue 2727663003: Move task.describe to audit.define arg (Closed)
Patch Set: Fix up expected results Created 3 years, 9 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 <script src="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audit.js"></script> 7 <script src="../resources/audit.js"></script>
8 <script src="../resources/distance-model-testing.js"></script> 8 <script src="../resources/distance-model-testing.js"></script>
9 </head> 9 </head>
10 10
11 <body> 11 <body>
12 <script> 12 <script>
13 let audit = Audit.createTaskRunner(); 13 let audit = Audit.createTaskRunner();
14 14
15 audit.define("test", (task, should) => { 15 audit.define(
16 task.describe("Exponential distance model for PannerNode"); 16 {
17 // Create offline audio context. 17 label: 'test',
18 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); 18 description: 'Exponential distance model for PannerNode'
19 },
20 (task, should) => {
21 // Create offline audio context.
22 context = new OfflineAudioContext(
23 2, sampleRate * renderLengthSeconds, sampleRate);
19 24
20 createTestAndRun(context, "exponential", should) 25 createTestAndRun(context, 'exponential', should)
21 .then(() => task.done()); 26 .then(() => task.done());
22 }); 27 });
23 28
24 audit.run(); 29 audit.run();
25 </script> 30 </script>
26 31
27 </body> 32 </body>
28 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698