| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> | 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> |
| 4 <script type="text/javascript" src="webrtc_test_common.js"></script> | 4 <script type="text/javascript" src="webrtc_test_common.js"></script> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 $ = function(id) { | 6 $ = function(id) { |
| 7 return document.getElementById(id); | 7 return document.getElementById(id); |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 window.onerror = function(errorMsg, url, lineNumber, column, errorObj) { | 10 window.onerror = function(errorMsg, url, lineNumber, column, errorObj) { |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 } | 511 } |
| 512 pc.createOffer( | 512 pc.createOffer( |
| 513 function(offer) { | 513 function(offer) { |
| 514 pc.setLocalDescription(offer); | 514 pc.setLocalDescription(offer); |
| 515 }, | 515 }, |
| 516 function(error) { failTest(error); } | 516 function(error) { failTest(error); } |
| 517 ); | 517 ); |
| 518 } | 518 } |
| 519 | 519 |
| 520 function callWithDevicePermissionGranted() { | 520 function callWithDevicePermissionGranted() { |
| 521 var pc = new webkitRTCPeerConnection(null, null); | 521 var pc = new RTCPeerConnection(); |
| 522 gatherIceCandidates(pc, function(candidates) { | 522 gatherIceCandidates(pc, function(candidates) { |
| 523 var hasLoopbackCandidate = false; | 523 var hasLoopbackCandidate = false; |
| 524 assertEquals(candidates.length > 0, true); | 524 assertEquals(candidates.length > 0, true); |
| 525 for (i = 0; i < candidates.length; i++) { | 525 for (i = 0; i < candidates.length; i++) { |
| 526 hasLoopbackCandidate |= iceCandidateIsLoopback(candidates[i]); | 526 hasLoopbackCandidate |= iceCandidateIsLoopback(candidates[i]); |
| 527 } | 527 } |
| 528 if (hasLoopbackCandidate) { | 528 if (hasLoopbackCandidate) { |
| 529 reportTestSuccess(); | 529 reportTestSuccess(); |
| 530 } else { | 530 } else { |
| 531 failTest('expect to see non-default host interface'); | 531 failTest('expect to see non-default host interface'); |
| 532 } | 532 } |
| 533 }); | 533 }); |
| 534 } | 534 } |
| 535 | 535 |
| 536 function callWithNoCandidateExpected() { | 536 function callWithNoCandidateExpected() { |
| 537 var pc = new webkitRTCPeerConnection({iceServers:[]}, null); | 537 var pc = new RTCPeerConnection(); |
| 538 gatherIceCandidates(pc, function(candidates) { | 538 gatherIceCandidates(pc, function(candidates) { |
| 539 assertEquals(candidates.length, 0); | 539 assertEquals(candidates.length, 0); |
| 540 reportTestSuccess(); | 540 reportTestSuccess(); |
| 541 }); | 541 }); |
| 542 } | 542 } |
| 543 | 543 |
| 544 function callAndExpectNonLoopbackCandidates() { | 544 function callAndExpectNonLoopbackCandidates() { |
| 545 var pc = new webkitRTCPeerConnection(null, null); | 545 var pc = new RTCPeerConnection(); |
| 546 gatherIceCandidates(pc, function(candidates) { | 546 gatherIceCandidates(pc, function(candidates) { |
| 547 var hasCandidate = false; | 547 var hasCandidate = false; |
| 548 assertEquals(candidates.length > 0, true); | 548 assertEquals(candidates.length > 0, true); |
| 549 for (i = 0; i < candidates.length; i++) { | 549 for (i = 0; i < candidates.length; i++) { |
| 550 hasCandidate = true; | 550 hasCandidate = true; |
| 551 assertEquals(iceCandidateIsLoopback(candidates[i]), false); | 551 assertEquals(iceCandidateIsLoopback(candidates[i]), false); |
| 552 } | 552 } |
| 553 assertTrue(hasCandidate, 'expect to see at least one candidate'); | 553 assertTrue(hasCandidate, 'expect to see at least one candidate'); |
| 554 reportTestSuccess(); | 554 reportTestSuccess(); |
| 555 }); | 555 }); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 <td><canvas width="320" height="240" id="remote-view-2-canvas" | 620 <td><canvas width="320" height="240" id="remote-view-2-canvas" |
| 621 style="display:none"></canvas></td> | 621 style="display:none"></canvas></td> |
| 622 <td><canvas width="320" height="240" id="remote-view-3-canvas" | 622 <td><canvas width="320" height="240" id="remote-view-3-canvas" |
| 623 style="display:none"></canvas></td> | 623 style="display:none"></canvas></td> |
| 624 <td><canvas width="320" height="240" id="remote-view-4-canvas" | 624 <td><canvas width="320" height="240" id="remote-view-4-canvas" |
| 625 style="display:none"></canvas></td> | 625 style="display:none"></canvas></td> |
| 626 </tr> | 626 </tr> |
| 627 </table> | 627 </table> |
| 628 </body> | 628 </body> |
| 629 </html> | 629 </html> |
| OLD | NEW |