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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-statsSelector.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 the RTCPeerConnection stats selector argument."); 8 description("Tests the RTCPeerConnection stats selector argument.");
9 9
10 var pc = null; 10 var pc = null;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Up to 10 milliseconds has been observed on XP, 2 milliseconds on Win7. 43 // Up to 10 milliseconds has been observed on XP, 2 milliseconds on Win7.
44 fudgeForXP = 20; 44 fudgeForXP = 20;
45 res = result[0]; 45 res = result[0];
46 timediff = res.timestamp - startTime + fudgeForXP; 46 timediff = res.timestamp - startTime + fudgeForXP;
47 shouldBeGreaterThanOrEqual('timediff', '0'); 47 shouldBeGreaterThanOrEqual('timediff', '0');
48 shouldBe('res.stat("type")', '"video"'); 48 shouldBe('res.stat("type")', '"video"');
49 finishJSTest(); 49 finishJSTest();
50 } 50 }
51 51
52 var startTime = new Date().getTime(); 52 var startTime = new Date().getTime();
53 shouldNotThrow('pc = new webkitRTCPeerConnection(null)'); 53 shouldNotThrow('pc = new RTCPeerConnection()');
54 shouldNotThrow('getUserMedia({audio:true, video:true}, gotStream)'); 54 shouldNotThrow('getUserMedia({audio:true, video:true}, gotStream)');
55 55
56 window.jsTestIsAsync = true; 56 window.jsTestIsAsync = true;
57 window.successfullyParsed = true; 57 window.successfullyParsed = true;
58 </script> 58 </script>
59 </body> 59 </body>
60 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698