Changeset 123309 in webkit
- Timestamp:
- Jul 23, 2012 12:53:19 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r123306 r123309 1 2012-07-23 Li Yin <li.yin@intel.com> 2 3 Improve AudioChannelSplitter test 4 https://bugs.webkit.org/show_bug.cgi?id=91962 5 6 Reviewed by Kentaro Hara. 7 8 Spec: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioChannelSplitter-section 9 The numberOfOutputs parameter determines the number of outputs. 10 Values of up to 32 must be supported. If not specified, then 6 will be used. 11 12 * webaudio/audiochannelsplitter-expected.txt: 13 * webaudio/audiochannelsplitter.html: 14 1 15 2012-07-22 Li Yin <li.yin@intel.com> 2 16 -
trunk/LayoutTests/webaudio/audiochannelsplitter-expected.txt
r113940 r123309 5 5 PASS Exception been thrown for numberOfOutputs <= 0. 6 6 PASS Exception been thrown for numberOfOutputs >= 32. 7 PASS AudioChannelSplitter created successfully with numberOfOutputs = 32. 8 PASS AudioChannelSplitter has 32 outputs when it is created with numberOfOutputs = 32. 9 PASS AudioChannelSplitter has one input. 10 PASS AudioChannelSplitter created successfully with empty parameter. 11 PASS AudioChannelSplitter has 6 outputs when it is created with empty parameter. 7 12 PASS Correctly exchanged left and right channels. 8 13 PASS successfullyParsed is true -
trunk/LayoutTests/webaudio/audiochannelsplitter.html
r120521 r123309 98 98 } 99 99 100 try { 101 var splitternode = context.createChannelSplitter(32); 102 testPassed("AudioChannelSplitter created successfully with numberOfOutputs = 32."); 103 if (splitternode.numberOfOutputs === 32) 104 testPassed("AudioChannelSplitter has 32 outputs when it is created with numberOfOutputs = 32."); 105 else 106 testFailed("AudioChannelSplitter should have 32 outputs when it is created with numberOfOutputs = 32."); 107 108 if (splitternode.numberOfInputs === 1) 109 testPassed("AudioChannelSplitter has one input."); 110 else 111 testFailed("AudioChannelSplitter should have one input."); 112 } catch(e) { 113 testFailed("Failed to create AudioChannelSplitter with numberOfInputs = 32."); 114 } 115 116 try { 117 var splitternode = context.createChannelSplitter(); 118 testPassed("AudioChannelSplitter created successfully with empty parameter."); 119 if (splitternode.numberOfOutputs === 6) 120 testPassed("AudioChannelSplitter has 6 outputs when it is created with empty parameter."); 121 else 122 testFailed("AudioChannelSplitter should have 6 outputs when it is created with empty parameter."); 123 } catch(e) { 124 testFailed("Failed to create AudioChannelSplitter with empty parameter."); 125 } 126 100 127 // Create a stereo buffer, with all +1 values in left channel, all -1 in right channel. 101 128 sourceBuffer = createStereoBufferWithDCOffset(lengthInSampleFrames, sampleRate, 1);
Note: See TracChangeset
for help on using the changeset viewer.