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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCPeerConnectionIceEvent-constructor.html

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years 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 | « third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCDataChannelEvent-constructor.html ('k') | 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>RTCPeerConnectionIceEvent constructor</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 test(function() {
8 assert_equals(RTCPeerConnectionIceEvent.length, 1);
9 var e = new RTCPeerConnectionIceEvent('type');
10 assert_equals(e.candidate, null);
11 assert_false(e.bubbles);
12 assert_false(e.cancelable);
13 }, 'RTCPeerConnectionIceEvent constructor with no candidate provided.');
14
15 test(function() {
16 var e = new RTCPeerConnectionIceEvent('type', { candidate: null });
17 assert_equals(e.candidate, null);
18 }, 'RTCPeerConnectionIceEvent constructor with candidate passed as null.');
19
20 test(function() {
21 var e = new RTCPeerConnectionIceEvent('type', { candidate: undefined });
22 assert_equals(e.candidate, null);
23 }, 'RTCPeerConnectionIceEvent constructor with candidate passed as undefined.');
24
25 test(function() {
26 var c = new RTCIceCandidate({ candidate: 'candidate', sdpMid: 'sdpMid', sdpMLi neIndex: 1 });
27 var e = new RTCPeerConnectionIceEvent('type', { candidate: c, url: 'url', bubb les: true, cancelable: true});
28 assert_equals(e.type, 'type');
29 assert_equals(e.candidate, c);
30 // assert_equals(e.url, 'url');
31 assert_true(e.bubbles);
32 assert_true(e.cancelable);
33 }, 'RTCPeerConnectionIceEvent constructor with full arguments.');
34 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCDataChannelEvent-constructor.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698