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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-ice.html

Issue 2289183003: Add more appropriate assert_unreached to RTCPeerConnection-ice test (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | 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="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 function onIceChange2() 9 function onIceChange2()
10 { 10 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 function addIceCandidateSuccess4() 47 function addIceCandidateSuccess4()
48 { 48 {
49 calledCallbacks.push('success4'); 49 calledCallbacks.push('success4');
50 window.pc.oniceconnectionstatechange = onIceChange2; 50 window.pc.oniceconnectionstatechange = onIceChange2;
51 window.pc.close(); 51 window.pc.close();
52 } 52 }
53 53
54 function unexpectedCallback() 54 function unexpectedCallback()
55 { 55 {
56 calledCallbacks.push('unexpected'); 56 assert_unreached('Unexpected callback');
57 } 57 }
58 58
59 function expectedTypeError(error) 59 function expectedTypeError(error)
60 { 60 {
61 assert_equals(error.name, 'TypeError'); 61 assert_equals(error.name, 'TypeError');
62 calledCallbacks.push('expectedTypeError'); 62 calledCallbacks.push('expectedTypeError');
63 } 63 }
64 64
65 function onIceChange1() 65 function onIceChange1()
66 { 66 {
(...skipping 29 matching lines...) Expand all
96 96
97 window.calledCallbacks = []; 97 window.calledCallbacks = [];
98 window.testRTC = async_test("Tests the RTCPeerConnection Ice functionality."); 98 window.testRTC = async_test("Tests the RTCPeerConnection Ice functionality.");
99 99
100 testExecutionOrderClosedConnection(); 100 testExecutionOrderClosedConnection();
101 window.pc = new webkitRTCPeerConnection(null, null); 101 window.pc = new webkitRTCPeerConnection(null, null);
102 window.pc.oniceconnectionstatechange = onIceChange1; 102 window.pc.oniceconnectionstatechange = onIceChange1;
103 </script> 103 </script>
104 </body> 104 </body>
105 </html> 105 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698