| OLD | NEW |
| 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/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 8 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audio-testing.js"></script> |
| 9 </head> | 9 </head> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 context = new AudioContext(); | 26 context = new AudioContext(); |
| 27 | 27 |
| 28 mediaStreamDestination = context.createMediaStreamDestination(); | 28 mediaStreamDestination = context.createMediaStreamDestination(); |
| 29 | 29 |
| 30 // MediaStreamAudioDestinationNode should inherit AudioNode. | 30 // MediaStreamAudioDestinationNode should inherit AudioNode. |
| 31 shouldBe('mediaStreamDestination.__proto__.__proto__', 'AudioNode.prototype'
); | 31 shouldBe('mediaStreamDestination.__proto__.__proto__', 'AudioNode.prototype'
); |
| 32 | 32 |
| 33 // Check the channel count boundary of 8. | 33 // Check the channel count boundary of 8. |
| 34 Should('Setting the channel count beyond 8', function () { | 34 Should('Setting the channel count beyond 8', function () { |
| 35 mediaStreamDestination.channelCount = 9; | 35 mediaStreamDestination.channelCount = 9; |
| 36 }).throw('IndexSizeError'); | 36 }).throw('NotSupportedError'); |
| 37 | 37 |
| 38 // Check number of inputs and outputs. | 38 // Check number of inputs and outputs. |
| 39 if (mediaStreamDestination.numberOfInputs == 1) | 39 if (mediaStreamDestination.numberOfInputs == 1) |
| 40 testPassed("Destination AudioNode has one input."); | 40 testPassed("Destination AudioNode has one input."); |
| 41 else | 41 else |
| 42 testFailed("Destination AudioNode should have one input."); | 42 testFailed("Destination AudioNode should have one input."); |
| 43 | 43 |
| 44 // FIXME: We should have no outputs, but since we're implemented using Audio
BasicInspectorNode | 44 // FIXME: We should have no outputs, but since we're implemented using Audio
BasicInspectorNode |
| 45 // we have one. | 45 // we have one. |
| 46 // if (mediaStreamDestination.numberOfOutputs == 0) | 46 // if (mediaStreamDestination.numberOfOutputs == 0) |
| 47 // testPassed("Destination AudioNode has no outputs."); | 47 // testPassed("Destination AudioNode has no outputs."); |
| 48 // else | 48 // else |
| 49 // testFailed("Destination AudioNode should not have outputs."); | 49 // testFailed("Destination AudioNode should not have outputs."); |
| 50 | 50 |
| 51 // FIXME: add a test where we create a PeerConnection and call addStream(med
iaStreamDestination.stream). | 51 // FIXME: add a test where we create a PeerConnection and call addStream(med
iaStreamDestination.stream). |
| 52 | 52 |
| 53 finishJSTest(); | 53 finishJSTest(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 runTest(); | 56 runTest(); |
| 57 window.successfullyParsed = true; | 57 window.successfullyParsed = true; |
| 58 | 58 |
| 59 </script> | 59 </script> |
| 60 | 60 |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |