Pass | MediaStreamAudioSourceNode created with factory method and MediaStream with no tracks | Asserts runPass | assert_throws_dom("InvalidStateError", function "function() { ac.createMediaStreamSource(emptyStream); }", "A MediaStreamAudioSourceNode can only be constructed via the factory\n method with a MediaStream that has at least one track of kind \"audio\"")
at Test.<anonymous> ( /webaudio/the-audio-api/the-mediastreamaudiosourcenode-interface/mediastreamaudiosourcenode-ctor.html:20:11) |
|
Pass | MediaStreamAudioSourceNode created with constructor and MediaStream with no tracks | Asserts runPass | assert_throws_dom("InvalidStateError", function "function() { new MediaStreamAudioSourceNode(ac, { mediaStream: emptyStream }); }", "A MediaStreamAudioSourceNode can only be constructed via the constructor\n with a MediaStream that has at least one track of kind \"audio\"")
at Test.<anonymous> ( /webaudio/the-audio-api/the-mediastreamaudiosourcenode-interface/mediastreamaudiosourcenode-ctor.html:31:11) |
|
Pass | MediaStreamAudioSourceNode created with the factory method and MediaStream with only a video track | Asserts runPass | assert_throws_dom("InvalidStateError", function "function() { ac.createMediaStreamSource(videoOnlyStream); }", "A MediaStreamAudioSourceNode can only be constructed via the factory with a\n MediaStream that has at least one track of kind \"audio\"")
at Test.<anonymous> ( /webaudio/the-audio-api/the-mediastreamaudiosourcenode-interface/mediastreamaudiosourcenode-ctor.html:46:11) |
|
Pass | MediaStreamAudioSourceNode created with constructor and MediaStream with only a video track | Asserts runPass | assert_throws_dom("InvalidStateError", function "function() { new MediaStreamAudioSourceNode(ac, { mediaStream: videoOnlyStream, }); }", "A MediaStreamAudioSourceNode can only be constructed via the factory with a\n MediaStream that has at least one track of kind \"audio\"")
at Test.<anonymous> ( /webaudio/the-audio-api/the-mediastreamaudiosourcenode-interface/mediastreamaudiosourcenode-ctor.html:57:11) |
|