blob: 1d3de2267bf856b42c00b22e4ede09950ca83265 [file] [log] [blame]
Tests MediaStream assignment to MediaElement using 'srcObject' MediaElement attribute.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS navigator.webkitGetUserMedia({audio:true, video:false}, gotStream, error); did not throw exception.
PASS stream.getAudioTracks().length is 1
PASS stream.getVideoTracks().length is 0
PASS audio.srcObject = stream; did not throw exception.
PASS streamObj = audio.srcObject; did not throw exception.
PASS streamObj is stream
PASS streamObj.getAudioTracks().length is 1
PASS streamObj.getVideoTracks().length is 0
PASS streamObj.id is stream.id
PASS stream assigned to media element.
PASS audio.srcObject = null; did not throw exception.
PASS streamObj = audio.srcObject; did not throw exception.
PASS streamObj is null
PASS successfullyParsed is true
TEST COMPLETE