Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassMediaStreamAudioSourceNode created with factory method and MediaStream with no tracks
Asserts run
Pass
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)
PassMediaStreamAudioSourceNode created with constructor and MediaStream with no tracks
Asserts run
Pass
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)
PassMediaStreamAudioSourceNode created with the factory method and MediaStream with only a video track
Asserts run
Pass
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)
PassMediaStreamAudioSourceNode created with constructor and MediaStream with only a video track
Asserts run
Pass
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)