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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/mediastreamaudiodestinationnode.html

Issue 1464673002: Support multichannel audio stream more than 2 in MediaStreamDestinationNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed intdentation Created 5 years 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script> 6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audio-testing.js"></script> 7 <script src="resources/audio-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 11 matching lines...) Expand all
22 testRunner.dumpAsText(); 22 testRunner.dumpAsText();
23 } 23 }
24 24
25 context = new AudioContext(); 25 context = new AudioContext();
26 26
27 mediaStreamDestination = context.createMediaStreamDestination(); 27 mediaStreamDestination = context.createMediaStreamDestination();
28 28
29 // MediaStreamAudioDestinationNode should inherit AudioNode. 29 // MediaStreamAudioDestinationNode should inherit AudioNode.
30 shouldBe('mediaStreamDestination.__proto__.__proto__', 'AudioNode.prototype' ); 30 shouldBe('mediaStreamDestination.__proto__.__proto__', 'AudioNode.prototype' );
31 31
32 // Check the channel count boundary of 8.
33 Should('Setting the channel count beyond 8', function () {
34 mediaStreamDestination.channelCount = 9;
35 }).throw('IndexSizeError');
36
32 // Check number of inputs and outputs. 37 // Check number of inputs and outputs.
33 if (mediaStreamDestination.numberOfInputs == 1) 38 if (mediaStreamDestination.numberOfInputs == 1)
34 testPassed("Destination AudioNode has one input."); 39 testPassed("Destination AudioNode has one input.");
35 else 40 else
36 testFailed("Destination AudioNode should have one input."); 41 testFailed("Destination AudioNode should have one input.");
37 42
38 // FIXME: We should have no outputs, but since we're implemented using Audio BasicInspectorNode 43 // FIXME: We should have no outputs, but since we're implemented using Audio BasicInspectorNode
39 // we have one. 44 // we have one.
40 // if (mediaStreamDestination.numberOfOutputs == 0) 45 // if (mediaStreamDestination.numberOfOutputs == 0)
41 // testPassed("Destination AudioNode has no outputs."); 46 // testPassed("Destination AudioNode has no outputs.");
42 // else 47 // else
43 // testFailed("Destination AudioNode should not have outputs."); 48 // testFailed("Destination AudioNode should not have outputs.");
44 49
45 // FIXME: add a test where we create a PeerConnection and call addStream(med iaStreamDestination.stream). 50 // FIXME: add a test where we create a PeerConnection and call addStream(med iaStreamDestination.stream).
46 51
47 finishJSTest(); 52 finishJSTest();
48 } 53 }
49 54
50 runTest(); 55 runTest();
51 window.successfullyParsed = true; 56 window.successfullyParsed = true;
52 57
53 </script> 58 </script>
54 59
55 </body> 60 </body>
56 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698