OLD | NEW |
| (Empty) |
1 Tests the RTCPeerConnection stats interface. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
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. | |
12 PASS Got a stream. | |
13 PASS pc.getStats(statsHandler2) did not throw exception. | |
14 PASS statsHandler2 was called | |
15 PASS result.length is >= 2 | |
16 PASS timediff is >= 0 | |
17 PASS local.names().length is >= 1 | |
18 PASS local.names().indexOf("type") is >= 0 | |
19 PASS local.stat("type") is "audio" | |
20 PASS timediff is >= 0 | |
21 PASS res.id is non-null. | |
22 PASS res.type is non-null. | |
23 PASS res.names().length is >= 1 | |
24 PASS res.names().indexOf("type") is >= 0 | |
25 PASS res.stat("type") is "audio" | |
26 PASS status_g.namedItem(res.id) is non-null. | |
27 PASS status_g[res.id] is non-null. | |
28 PASS pc.close() did not throw exception. | |
29 PASS pc.getStats(statsHandler3) did not throw exception. | |
30 PASS statsHandler3 was called | |
31 PASS result.length is >= 2 | |
32 PASS timediff is >= 0 | |
33 PASS local.names().length is >= 1 | |
34 PASS local.names().indexOf("type") is >= 0 | |
35 PASS local.stat("type") is "audio" | |
36 PASS timediff is >= 0 | |
37 PASS res.id is non-null. | |
38 PASS res.type is non-null. | |
39 PASS res.names().length is >= 1 | |
40 PASS res.names().indexOf("type") is >= 0 | |
41 PASS res.stat("type") is "audio" | |
42 PASS status_g.namedItem(res.id) is non-null. | |
43 PASS status_g[res.id] is non-null. | |
44 PASS successfullyParsed is true | |
45 | |
46 TEST COMPLETE | |
47 | |
OLD | NEW |