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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnectionIceEvent-constructor.html

Issue 2494553002: Rename RTCIceCandidateEvent to RTCPeerConnectionIceEvent and expose. (Closed)
Patch Set: Added layout test 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt » ('j') | 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 // TODO(lunalu): default for e.url should be "null" instead of "undefined".
foolip 2016/11/11 21:22:05 I think this is OK so that this test must be updat
lunalu1 2016/11/15 18:09:24 Done.
12 assert_equals(e.url, undefined);
13 assert_false(e.bubbles);
14 assert_false(e.cancelable);
15 }, 'RTCPeerConnectionIceEvent constructor with no candidate attribute provivded' );
16
17 test(function() {
18 var e = new RTCPeerConnectionIceEvent('type', { candidate: null });
19 assert_equals(e.candidate, null);
20 }, 'RTCPeerConnectionIceEvent constructor with cnadidate paased as "null".');
21
22 test(function() {
23 var e = new RTCPeerConnectionIceEvent('type', { candidate: undefined });
24 // TODO(lunalu): should be "undefined" instead of "null".
foolip 2016/11/11 21:22:05 Actually, null is correct. The reason is a bit nua
lunalu1 2016/11/15 18:09:24 Done.
25 assert_equals(e.candidate, null);
26 }, 'RTCPeerConnectionIceEvent constructor with candidate paased as "undefined".' );
27
28 test(function() {
29 var c = new RTCIceCandidate({ candidate: 'candidate', sdpMid: 'sdpMid', sdpMLi neIndex: 1 });
foolip 2016/11/11 21:22:05 Unrelated: A look at RTCIceCandidate.idl shows tha
lunalu1 2016/11/15 18:09:24 Done.
30 var e = new RTCPeerConnectionIceEvent('type', { candidate: c, url: 'url', bubb les: true, cancelable: true});
31 assert_equals(e.candidate, c);
32 assert_equals(e.url, undefined);
33 assert_true(e.bubbles);
34 assert_true(e.cancelable);
35 }, 'RTCPeerConnectionIceEvent constructor with full arguments.');
36 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/virtual/stable/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698