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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/Panner/distance-linear.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("Linear distance model PannerNode"); 16 {label: 'test', description: 'Linear distance model PannerNode'},
17 // Create offline audio context. 17 (task, should) => {
18 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); 18 // Create offline audio context.
19 context = new OfflineAudioContext(
20 2, sampleRate * renderLengthSeconds, sampleRate);
19 21
20 createTestAndRun(context, "linear", should) 22 createTestAndRun(context, 'linear', should).then(() => task.done());
21 .then(() => task.done()); 23 });
22 });
23 24
24 audit.run(); 25 audit.run();
25 </script> 26 </script>
26 27
27 </body> 28 </body>
28 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698