1 Tests the RTCPeerConnection stats interface.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS pc = new webkitRTCPeerConnection(null) did not throw exception.
7 PASS pc.getStats(statsHandler1) did not throw exception.
8 PASS statsHandler1 was called
9 PASS status is non-null.
10 PASS result.length is 0
11 PASS getUserMedia({audio:true, video:true}, gotStream) did not throw exception.
13 PASS pc.getStats(statsHandler2) did not throw exception.
14 PASS statsHandler2 was called
15 PASS result.length is >= 2
17 PASS res.id is non-null.
18 PASS res.type is non-null.
19 PASS res.names().length is >= 1
20 PASS res.names().indexOf("type") is >= 0
21 PASS res.stat("type") is "audio"
22 PASS status_g.namedItem(res.id) is non-null.
23 PASS status_g[res.id] is non-null.
24 PASS pc.close() did not throw exception.
25 PASS pc.getStats(statsHandler3) did not throw exception.
26 PASS statsHandler3 was called
27 PASS result.length is >= 2
29 PASS res.id is non-null.
30 PASS res.type is non-null.
31 PASS res.names().length is >= 1
32 PASS res.names().indexOf("type") is >= 0
33 PASS res.stat("type") is "audio"
34 PASS status_g.namedItem(res.id) is non-null.
35 PASS status_g[res.id] is non-null.
36 PASS successfullyParsed is true