Set input method state when webpage move by history
[framework/web/webkit-efl.git] / LayoutTests / webaudio / mediastreamaudiodestinationnode.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <script src="../fast/js/resources/js-test-pre.js"></script>
6 <script src="resources/audio-testing.js"></script>
7 </head>
8
9 <body>
10 <div id="description"></div>
11 <div id="console"></div>
12
13 <script>
14 description("Basic tests for MediaStreamAudioDestinationNode API.");
15
16 var context = 0;
17
18 function runTest() {
19     if (window.testRunner) {
20         testRunner.dumpAsText();
21     }
22
23     context = new webkitAudioContext();
24
25     var mediaStreamDestination = context.createMediaStreamDestination();
26
27     // Check number of inputs and outputs.
28     if (mediaStreamDestination.numberOfInputs == 1)
29         testPassed("Destination AudioNode has one input.");
30     else
31         testFailed("Destination AudioNode should have one input.");
32
33     // FIXME: We should have no outputs, but since we're implemented using AudioBasicInspectorNode
34     // we have one.
35     // if (mediaStreamDestination.numberOfOutputs == 0)
36     //     testPassed("Destination AudioNode has no outputs.");
37     // else
38     //     testFailed("Destination AudioNode should not have outputs.");
39
40     // FIXME: add a test where we create a PeerConnection and call addStream(mediaStreamDestination.stream).
41
42     finishJSTest();
43 }
44
45 runTest();
46 window.successfullyParsed = true;
47
48 </script>
49
50 <script src="../fast/js/resources/js-test-post.js"></script>
51 </body>
52 </html>