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 <script> | 7 <script> |
8 description("Tests RTCPeerConnection onnegotiationneeded."); | 8 description("Tests RTCPeerConnection onnegotiationneeded."); |
9 | 9 |
10 var stream = null; | 10 var stream = null; |
(...skipping 16 matching lines...) Expand all Loading... |
27 function onNegotiationNeeded(event) { | 27 function onNegotiationNeeded(event) { |
28 testPassed('onNegotiationNeeded was called.'); | 28 testPassed('onNegotiationNeeded was called.'); |
29 | 29 |
30 finishJSTest(); | 30 finishJSTest(); |
31 } | 31 } |
32 | 32 |
33 function gotStream(s) { | 33 function gotStream(s) { |
34 testPassed('Got a stream.'); | 34 testPassed('Got a stream.'); |
35 stream = s; | 35 stream = s; |
36 | 36 |
37 pc = new webkitRTCPeerConnection(null, null); | 37 pc = new RTCPeerConnection(); |
38 pc.onnegotiationneeded = onNegotiationNeeded; | 38 pc.onnegotiationneeded = onNegotiationNeeded; |
39 | 39 |
40 pc.addStream(stream); | 40 pc.addStream(stream); |
41 } | 41 } |
42 | 42 |
43 getUserMedia({audio:true, video:true}, gotStream); | 43 getUserMedia({audio:true, video:true}, gotStream); |
44 | 44 |
45 window.jsTestIsAsync = true; | 45 window.jsTestIsAsync = true; |
46 window.successfullyParsed = true; | 46 window.successfullyParsed = true; |
47 </script> | 47 </script> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |