Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / scriptprocessornode-0-output-channels.html
blob550ed0aded02c940e1400e3afcbdfcdd26887c52
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>Test Connecting 0-output channel ScriptProcessor to Another Node </title>
5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 </head>
10 <body>
11 <script>
12 description("Test Connecting 0-output channel ScriptProcessor to Another Node");
13 window.jsTestIsAsync = true;
15 var audit = Audit.createTaskRunner();
16 var context;
17 var scriptNode1;
18 var scriptNode2;
19 var analyzer;
21 audit.defineTask("initialize", function (done) {
22 Should("context = new OfflineAudioContext(1, 1024, 44100)", function () {
23 context = new OfflineAudioContext(1, 1024, 44100);
24 }).notThrow();
25 Should("analyzer = context.createAnalyser()", function () {
26 analyzer = context.createAnalyser();
27 }).notThrow();
28 Should("scriptNode1 = context.createScriptProcessor(1024, 11, 0)", function () {
29 scriptNode1 = context.createScriptProcessor(1024, 11, 0);
30 }).notThrow();
31 Should("scriptNode2 = context.createScriptProcessor(1024, 1, 1)", function () {
32 scriptNode2 = context.createScriptProcessor(1024, 1, 1);
33 }).notThrow();
34 done();
35 });
37 audit.defineTask("test", function (done) {
38 Should("scriptNode1.connect(analyzer)", function () {
39 scriptNode1.connect(analyzer);
40 }).throw("InvalidAccessError");
41 Should("scriptNode2.connect(analyzer)", function () {
42 scriptNode2.connect(analyzer);
43 }).notThrow();
44 done();
45 });
47 audit.defineTask("finish", function (done) {
48 done();
49 finishJSTest();
50 });
52 audit.runTasks(
53 "initialize",
54 "test",
55 "finish"
57 </script>
58 </body>
59 </html>