OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Tests the RTCPeerConnection Ice functionality."); | 8 description("Tests the RTCPeerConnection Ice functionality."); |
9 | 9 |
10 var pc = null; | 10 var pc = null; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 function onIceChange1() | 47 function onIceChange1() |
48 { | 48 { |
49 if (pc.iceConnectionState === "completed") { | 49 if (pc.iceConnectionState === "completed") { |
50 testPassed("iceConnectionState is completed"); | 50 testPassed("iceConnectionState is completed"); |
51 iceCandidate = new RTCIceCandidate({candidate:"nano nano"}); | 51 iceCandidate = new RTCIceCandidate({candidate:"nano nano"}); |
52 shouldNotThrow('pc.addIceCandidate(null).then(unexpectedSuccess, expecte
dTypeError);'); | 52 shouldNotThrow('pc.addIceCandidate(null).then(unexpectedSuccess, expecte
dTypeError);'); |
53 shouldNotThrow('pc.addIceCandidate(iceCandidate).then(addIceCandidateSuc
cess, addIceCandidateFailure);'); | 53 shouldNotThrow('pc.addIceCandidate(iceCandidate).then(addIceCandidateSuc
cess, addIceCandidateFailure);'); |
54 } | 54 } |
55 } | 55 } |
56 | 56 |
57 shouldNotThrow('pc = new webkitRTCPeerConnection(null, null);'); | 57 shouldNotThrow('pc = new RTCPeerConnection();'); |
58 pc.oniceconnectionstatechange = onIceChange1; | 58 pc.oniceconnectionstatechange = onIceChange1; |
59 | 59 |
60 window.jsTestIsAsync = true; | 60 window.jsTestIsAsync = true; |
61 window.successfullyParsed = true; | 61 window.successfullyParsed = true; |
62 </script> | 62 </script> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |