blob: 330dd15fb916ac97dffca59445f4f58829616ae0 [file] [log] [blame]
Tests the RTCPeerConnection stats selector argument.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS pc = new webkitRTCPeerConnection(null) did not throw exception.
PASS getUserMedia({audio:true, video:true}, gotStream) did not throw exception.
PASS Got a stream.
PASS pc.getStats(statsHandler2, pc.getLocalStreams()[0].getVideoTracks()[0]) did not throw exception.
PASS statsHandler2 was called
PASS result.length is >= 1
PASS timestamp is >= startTime
PASS local.stat("type") is "video"
PASS successfullyParsed is true
TEST COMPLETE