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

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

Issue 2672863007: Convert Panner distance model tests to testharness (Closed)
Patch Set: Created 3 years, 10 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
hongchan 2017/02/17 18:31:04 ditto.
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../resources/audit-util.js"></script> 6 <script src="../resources/audit-util.js"></script>
6 <script src="../resources/audio-testing.js"></script> 7 <script src="../resources/audit.js"></script>
7 <script src="../resources/distance-model-testing.js"></script> 8 <script src="../resources/distance-model-testing.js"></script>
8 </head> 9 </head>
9 10
10 <body> 11 <body>
11 <div id="description"></div> 12 <script>
12 <div id="console"></div> 13 let audit = Audit.createTaskRunner();
13 14
14 <script> 15 audit.define("test", function (task, should) {
hongchan 2017/02/17 18:31:04 Ditto. Use () => {}.
Raymond Toy 2017/02/17 19:10:11 Done.
15 description("Test linear distance model of AudioPannerNode."); 16 task.describe("Linear distance model PannerNode");
16
17 function runTest() {
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
21 }
22
23 window.jsTestIsAsync = true;
24
25 // Create offline audio context. 17 // Create offline audio context.
26 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); 18 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
27 19
28 createTestAndRun(context, "linear"); 20 createTestAndRun(context, "linear", should)
29 } 21 .then(task.done.bind(task));
hongchan 2017/02/17 18:31:04 Ditto.
Raymond Toy 2017/02/17 19:10:11 Done.
22 });
30 23
31 runTest(); 24 audit.run();
32 successfullyParsed = true;
33
34 </script> 25 </script>
35 26
36 </body> 27 </body>
37 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698