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 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("Tests RTCIceCandidate."); | 10 description("Tests RTCIceCandidate."); |
(...skipping 20 matching lines...) Expand all Loading... |
31 shouldNotThrow('new RTCIceCandidate({candidate:"x"});'); | 31 shouldNotThrow('new RTCIceCandidate({candidate:"x"});'); |
32 | 32 |
33 candidate = new RTCIceCandidate(initializer); | 33 candidate = new RTCIceCandidate(initializer); |
34 candidate.candidate = "bar"; | 34 candidate.candidate = "bar"; |
35 candidate.sdpMid = "foo"; | 35 candidate.sdpMid = "foo"; |
36 candidate.sdpMLineIndex = 0; | 36 candidate.sdpMLineIndex = 0; |
37 shouldBeEqualToString('candidate.candidate', 'bar'); | 37 shouldBeEqualToString('candidate.candidate', 'bar'); |
38 shouldBeEqualToString('candidate.sdpMid', 'foo'); | 38 shouldBeEqualToString('candidate.sdpMid', 'foo'); |
39 shouldBe('candidate.sdpMLineIndex', '0'); | 39 shouldBe('candidate.sdpMLineIndex', '0'); |
40 | 40 |
| 41 candidate.candidate = null; |
| 42 candidate.sdpMid = null; |
| 43 shouldBeEqualToString('candidate.candidate', 'null'); |
| 44 shouldBeEqualToString('candidate.sdpMid', 'null'); |
41 | 45 |
42 window.successfullyParsed = true; | 46 window.successfullyParsed = true; |
43 </script> | 47 </script> |
44 </body> | 48 </body> |
45 </html> | 49 </html> |
OLD | NEW |