Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: LayoutTests/fast/mediastream/RTCPeerConnection-datachannel.html

Issue 16305017: Removes the old createDataChannel and starts to use the new one with WebRTCDataChannelInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/RTCPeerConnection-datachannel-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/mediastream/RTCPeerConnection-datachannel-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698