5 <script src="../fast/js/resources/js-test-pre.js"></script>
6 <script src="resources/audio-testing.js"></script>
10 <div id="description"></div>
11 <div id="console"></div>
14 description("Basic tests for MediaStreamAudioDestinationNode API.");
19 if (window.testRunner) {
20 testRunner.dumpAsText();
23 context = new webkitAudioContext();
25 var mediaStreamDestination = context.createMediaStreamDestination();
27 // Check number of inputs and outputs.
28 if (mediaStreamDestination.numberOfInputs == 1)
29 testPassed("Destination AudioNode has one input.");
31 testFailed("Destination AudioNode should have one input.");
33 // FIXME: We should have no outputs, but since we're implemented using AudioBasicInspectorNode
35 // if (mediaStreamDestination.numberOfOutputs == 0)
36 // testPassed("Destination AudioNode has no outputs.");
38 // testFailed("Destination AudioNode should not have outputs.");
40 // FIXME: add a test where we create a PeerConnection and call addStream(mediaStreamDestination.stream).
46 window.successfullyParsed = true;
50 <script src="../fast/js/resources/js-test-post.js"></script>