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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCPeerConnectionIceEvent-constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCPeerConnectionIceEvent-constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCPeerConnectionIceEvent-constructor.html
new file mode 100644
index 0000000000000000000000000000000000000000..22d9d4bb591aa07d4bcd0762b7b65f02ab162b2a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/webrtc/RTCPeerConnectionIceEvent-constructor.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>RTCPeerConnectionIceEvent constructor</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ assert_equals(RTCPeerConnectionIceEvent.length, 1);
+ var e = new RTCPeerConnectionIceEvent('type');
+ assert_equals(e.candidate, null);
+ assert_false(e.bubbles);
+ assert_false(e.cancelable);
+}, 'RTCPeerConnectionIceEvent constructor with no candidate provided.');
+
+test(function() {
+ var e = new RTCPeerConnectionIceEvent('type', { candidate: null });
+ assert_equals(e.candidate, null);
+}, 'RTCPeerConnectionIceEvent constructor with candidate passed as null.');
+
+test(function() {
+ var e = new RTCPeerConnectionIceEvent('type', { candidate: undefined });
+ assert_equals(e.candidate, null);
+}, 'RTCPeerConnectionIceEvent constructor with candidate passed as undefined.');
+
+test(function() {
+ var c = new RTCIceCandidate({ candidate: 'candidate', sdpMid: 'sdpMid', sdpMLineIndex: 1 });
+ var e = new RTCPeerConnectionIceEvent('type', { candidate: c, url: 'url', bubbles: true, cancelable: true});
+ assert_equals(e.type, 'type');
+ assert_equals(e.candidate, c);
+ // assert_equals(e.url, 'url');
+ assert_true(e.bubbles);
+ assert_true(e.cancelable);
+}, 'RTCPeerConnectionIceEvent constructor with full arguments.');
+</script>
« 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