Changeset 121877 in webkit


Ignore:
Timestamp:
Jul 4, 2012 8:30:32 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

AudioNode test should cover numberOfInputs and numberOfOutputs of AudioDestinationNode
https://bugs.webkit.org/show_bug.cgi?id=90578

Patch by Li Yin <li.yin@intel.com> on 2012-07-04
Reviewed by Chris Rogers.

Spec: http://www.w3.org/TR/webaudio/#AudioDestinationNode-section
An AudioSourceNode has no inputs and a single output.
An AudioDestinationNode has one input and no outputs.
Currently, the test webaudio/audionode.html has covered AudioSourceNode,
it is still required to cover AudioDestinationNode.

  • webaudio/audionode-expected.txt:
  • webaudio/audionode.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r121876 r121877  
     12012-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
    1172012-07-04  Yoshifumi Inoue  <yosin@chromium.org>
    218
  • trunk/LayoutTests/webaudio/audionode-expected.txt

    r115533 r121877  
    88PASS Source AudioNode has no inputs.
    99PASS Source AudioNode has one output.
     10PASS Destination AudioNode has one input.
     11PASS Destination AudioNode has no outputs.
    1012PASS connect() exception thrown for illegal destination AudioNode.
    1113PASS connect() exception thrown for illegal output index.
  • trunk/LayoutTests/webaudio/audionode.html

    r120521 r121877  
    3232    shouldThrow("audioNode.noteOff()");
    3333
    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)
    3636        testPassed("Source AudioNode has no inputs.");
    3737    else
    3838        testFailed("Source AudioNode should not have inputs.");
    3939   
    40     if (audioNode.numberOfOutputs == 1)
     40    if (audioNode.numberOfOutputs === 1)
    4141        testPassed("Source AudioNode has one output.");
    4242    else
    4343        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.");
    4455
    4556    // Try calling connect() method with illegal values.
Note: See TracChangeset for help on using the changeset viewer.