| 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="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 description("Tests RTCDataChannel."); | 8 description("Tests RTCDataChannel."); |
| 9 | 9 |
| 10 var pc = null; | 10 var pc = null; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 shouldBe("dc.readyState", "'connecting'"); | 79 shouldBe("dc.readyState", "'connecting'"); |
| 80 dc.onopen = dc_onopen; | 80 dc.onopen = dc_onopen; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 pc = new webkitRTCPeerConnection(null, null); | 84 pc = new webkitRTCPeerConnection(null, null); |
| 85 shouldNotThrow('dc = pc.createDataChannel("label1");'); | 85 shouldNotThrow('dc = pc.createDataChannel("label1");'); |
| 86 shouldBe("dc.reliable", "true"); | 86 shouldBe("dc.reliable", "true"); |
| 87 shouldNotThrow('dc = pc.createDataChannel("label2", {});'); | 87 shouldNotThrow('dc = pc.createDataChannel("label2", {});'); |
| 88 shouldBe("dc.reliable", "true"); | 88 shouldBe("dc.reliable", "true"); |
| 89 shouldNotThrow('dc = pc.createDataChannel("label3", {reliable:true});'); | 89 shouldNotThrow('dc = pc.createDataChannel("label3", {ordered:true});'); |
| 90 shouldBe("dc.reliable", "true"); | 90 shouldBe("dc.reliable", "true"); |
| 91 shouldNotThrow('dc = pc.createDataChannel("label3", {reliable:false});'); | 91 shouldNotThrow('dc = pc.createDataChannel("label3", {ordered:false});'); |
| 92 shouldBe("dc.reliable", "false"); |
| 93 shouldNotThrow('dc = pc.createDataChannel("label3", {maxRetransmits:0});'); |
| 94 shouldBe("dc.reliable", "false"); |
| 95 shouldNotThrow('dc = pc.createDataChannel("label3", {maxRetransmitTime:0});'); |
| 92 shouldBe("dc.reliable", "false"); | 96 shouldBe("dc.reliable", "false"); |
| 93 | 97 |
| 94 pc = new webkitRTCPeerConnection(null, null); | 98 pc = new webkitRTCPeerConnection(null, null); |
| 95 pc.oniceconnectionstatechange = pc_onicechange; | 99 pc.oniceconnectionstatechange = pc_onicechange; |
| 96 pc.ondatachannel = pc_ondatachannel; | 100 pc.ondatachannel = pc_ondatachannel; |
| 97 | 101 |
| 98 window.jsTestIsAsync = true; | 102 window.jsTestIsAsync = true; |
| 99 window.successfullyParsed = true; | 103 window.successfullyParsed = true; |
| 100 </script> | 104 </script> |
| 101 <script src="../js/resources/js-test-post.js"></script> | 105 <script src="../js/resources/js-test-post.js"></script> |
| 102 </body> | 106 </body> |
| 103 </html> | 107 </html> |
| OLD | NEW |