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

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

Issue 2446173002: Use RTCPeerConnection instead of webkitRTCPeerConnection (Closed)
Patch Set: rebase Created 4 years, 1 month 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
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/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 RTCDTMFSender."); 8 description("Tests RTCDTMFSender.");
9 9
10 var pc = null; 10 var pc = null;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 shouldBeEqualToString('dtmfsender.toneBuffer', "1"); 46 shouldBeEqualToString('dtmfsender.toneBuffer', "1");
47 } 47 }
48 } 48 }
49 49
50 function gotStream(s) { 50 function gotStream(s) {
51 stream = s; 51 stream = s;
52 testPassed('Stream generated.'); 52 testPassed('Stream generated.');
53 shouldBe('stream.getAudioTracks().length', '1'); 53 shouldBe('stream.getAudioTracks().length', '1');
54 shouldBe('stream.getVideoTracks().length', '0'); 54 shouldBe('stream.getVideoTracks().length', '0');
55 55
56 pc = new webkitRTCPeerConnection(null, null); 56 pc = new RTCPeerConnection();
57 pc.oniceconnectionstatechange = pc_onicechange; 57 pc.oniceconnectionstatechange = pc_onicechange;
58 } 58 }
59 59
60 shouldNotThrow("navigator.webkitGetUserMedia({audio:true}, gotStream, error);"); 60 shouldNotThrow("navigator.webkitGetUserMedia({audio:true}, gotStream, error);");
61 61
62 window.jsTestIsAsync = true; 62 window.jsTestIsAsync = true;
63 window.successfullyParsed = true; 63 window.successfullyParsed = true;
64 </script> 64 </script>
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698