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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html

Issue 2669263006: Convert ScriptProcessor Audit tests to testharness (Closed)
Patch Set: Remove finish task and some extra blank lines 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test Connecting 0-output channel ScriptProcessor to Another Node </ti tle> 4 <title>Test Connecting 0-output channel ScriptProcessor to Another Node </ti tle>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit-util.js"></script> 7 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audio-testing.js"></script> 8 <script src="../resources/audio-testing.js"></script>
8 </head> 9 </head>
9 10
10 <body> 11 <body>
11 <script> 12 <script>
12 description("Test Connecting 0-output channel ScriptProcessor to Another N ode");
13 window.jsTestIsAsync = true;
14
15 var audit = Audit.createTaskRunner(); 13 var audit = Audit.createTaskRunner();
16 var context; 14 var context;
17 var scriptNode1; 15 var scriptNode1;
18 var scriptNode2; 16 var scriptNode2;
19 var analyzer; 17 var analyzer;
20 18
21 audit.defineTask("initialize", function (done) { 19 audit.defineTask("initialize", function (done) {
22 Should("context = new OfflineAudioContext(1, 1024, 44100)", function () { 20 Should("context = new OfflineAudioContext(1, 1024, 44100)", function () {
23 context = new OfflineAudioContext(1, 1024, 44100); 21 context = new OfflineAudioContext(1, 1024, 44100);
24 }).notThrow(); 22 }).notThrow();
(...skipping 12 matching lines...) Expand all
37 audit.defineTask("test", function (done) { 35 audit.defineTask("test", function (done) {
38 Should("scriptNode1.connect(analyzer)", function () { 36 Should("scriptNode1.connect(analyzer)", function () {
39 scriptNode1.connect(analyzer); 37 scriptNode1.connect(analyzer);
40 }).throw("InvalidAccessError"); 38 }).throw("InvalidAccessError");
41 Should("scriptNode2.connect(analyzer)", function () { 39 Should("scriptNode2.connect(analyzer)", function () {
42 scriptNode2.connect(analyzer); 40 scriptNode2.connect(analyzer);
43 }).notThrow(); 41 }).notThrow();
44 done(); 42 done();
45 }); 43 });
46 44
47 audit.defineTask("finish", function (done) { 45 audit.runTasks();
48 done();
49 finishJSTest();
50 });
51
52 audit.runTasks(
53 "initialize",
54 "test",
55 "finish"
56 );
57 </script> 46 </script>
58 </body> 47 </body>
59 </html> 48 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698