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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/webrtc/simplecall.html

Issue 2468053002: Import wpt@9fcccf38b6be00f71ffa6bd6e29c5aa1ef25ee8c (Closed)
Patch Set: Skip cssom and svg/shapes, remove unwanted baseline 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> 1 <!doctype html>
2 <!-- 2 <!--
3 To quickly iterate when developing this test, use --use-fake-ui-for-media-stream 3 To run this test, you must have a webcam and a microphone or use
4 for Chrome and set the media.navigator.permission.disabled property to true in 4 fake devices by specifying
5 Firefox. You must either have a webcam/mic available on the system or use for 5 --use-fake-device-for-media-stream --use-fake-ui-for-media-stream
6 instance --use-fake-device-for-media-stream for Chrome. 6 for Chrome or by setting the
7 media.navigator.streams.fake
8 property to true in Firefox.
7 --> 9 -->
8 10
9 <html> 11 <html>
10 <head> 12 <head>
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 13 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12 <title>RTCPeerConnection Connection Test</title> 14 <title>RTCPeerConnection Connection Test</title>
13 </head> 15 </head>
14 <body> 16 <body>
15 <div id="log"></div> 17 <div id="log"></div>
16 <div> 18 <div>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 // Returns a suitable error callback. 104 // Returns a suitable error callback.
103 function failed(function_name) { 105 function failed(function_name) {
104 return test.step_func(function() { 106 return test.step_func(function() {
105 assert_unreached('WebRTC called error callback for ' + function_name); 107 assert_unreached('WebRTC called error callback for ' + function_name);
106 }); 108 });
107 } 109 }
108 110
109 // This function starts the test. 111 // This function starts the test.
110 test.step(function() { 112 test.step(function() {
111 navigator.getUserMedia({ video: true, audio: true }, 113 navigator.mediaDevices.getUserMedia({ video: true, audio: true })
112 getUserMediaOkCallback, 114 .then(getUserMediaOkCallback, failed('getUserMedia'));
113 failed('getUserMedia'));
114 }); 115 });
115 </script> 116 </script>
116 117
117 </body> 118 </body>
118 </html> 119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698