Changeset 121877 in webkit
- Timestamp:
- Jul 4, 2012 8:30:32 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r121876 r121877 1 2012-07-04 Li Yin <li.yin@intel.com> 2 3 AudioNode test should cover numberOfInputs and numberOfOutputs of AudioDestinationNode 4 https://bugs.webkit.org/show_bug.cgi?id=90578 5 6 Reviewed by Chris Rogers. 7 8 Spec: http://www.w3.org/TR/webaudio/#AudioDestinationNode-section 9 An AudioSourceNode has no inputs and a single output. 10 An AudioDestinationNode has one input and no outputs. 11 Currently, the test webaudio/audionode.html has covered AudioSourceNode, 12 it is still required to cover AudioDestinationNode. 13 14 * webaudio/audionode-expected.txt: 15 * webaudio/audionode.html: 16 1 17 2012-07-04 Yoshifumi Inoue <yosin@chromium.org> 2 18 -
trunk/LayoutTests/webaudio/audionode-expected.txt
r115533 r121877 8 8 PASS Source AudioNode has no inputs. 9 9 PASS Source AudioNode has one output. 10 PASS Destination AudioNode has one input. 11 PASS Destination AudioNode has no outputs. 10 12 PASS connect() exception thrown for illegal destination AudioNode. 11 13 PASS connect() exception thrown for illegal output index. -
trunk/LayoutTests/webaudio/audionode.html
r120521 r121877 32 32 shouldThrow("audioNode.noteOff()"); 33 33 34 // Check number of inputs and outputs.35 if (audioNode.numberOfInputs == 0)34 // Check input and output numbers of AudioSourceNode. 35 if (audioNode.numberOfInputs === 0) 36 36 testPassed("Source AudioNode has no inputs."); 37 37 else 38 38 testFailed("Source AudioNode should not have inputs."); 39 39 40 if (audioNode.numberOfOutputs == 1)40 if (audioNode.numberOfOutputs === 1) 41 41 testPassed("Source AudioNode has one output."); 42 42 else 43 43 testFailed("Source AudioNode should have one output."); 44 45 // Check input and output numbers of AudioDestinationNode 46 if (context.destination.numberOfInputs === 1) 47 testPassed("Destination AudioNode has one input."); 48 else 49 testFailed("Destination AudioNode should have one input."); 50 51 if (context.destination.numberOfOutputs === 0) 52 testPassed("Destination AudioNode has no outputs."); 53 else 54 testFailed("Destination AudioNode should have no outputs."); 44 55 45 56 // Try calling connect() method with illegal values.
Note: See TracChangeset
for help on using the changeset viewer.