Title: [214263] trunk/LayoutTests
Revision
214263
Author
[email protected]
Date
2017-03-22 11:02:31 -0700 (Wed, 22 Mar 2017)

Log Message

Move LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html to web-platform-tests
https://bugs.webkit.org/show_bug.cgi?id=169958

Patch by Youenn Fablet <[email protected]> on 2017-03-22
Reviewed by Jon Lee.

LayoutTests/imported/w3c:

* web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt: Added.
* web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html: Added.

LayoutTests:

* webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt: Removed.
* webrtc/rtcconfiguration-icecandidatepoolsize.html: Removed.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (214262 => 214263)


--- trunk/LayoutTests/ChangeLog	2017-03-22 18:00:22 UTC (rev 214262)
+++ trunk/LayoutTests/ChangeLog	2017-03-22 18:02:31 UTC (rev 214263)
@@ -1,3 +1,13 @@
+2017-03-22  Youenn Fablet  <[email protected]>
+
+        Move LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html to web-platform-tests
+        https://bugs.webkit.org/show_bug.cgi?id=169958
+
+        Reviewed by Jon Lee.
+
+        * webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt: Removed.
+        * webrtc/rtcconfiguration-icecandidatepoolsize.html: Removed.
+
 2017-03-22  Antoine Quint  <[email protected]>
 
         [Modern Media Controls] Rendering glitches for fullscreen controls while dragging

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (214262 => 214263)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2017-03-22 18:00:22 UTC (rev 214262)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2017-03-22 18:02:31 UTC (rev 214263)
@@ -1,5 +1,15 @@
 2017-03-22  Youenn Fablet  <[email protected]>
 
+        Move LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html to web-platform-tests
+        https://bugs.webkit.org/show_bug.cgi?id=169958
+
+        Reviewed by Jon Lee.
+
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt: Added.
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html: Added.
+
+2017-03-22  Youenn Fablet  <[email protected]>
+
         Safari sends empty "Access-Control-Request-Headers" in preflight request
         https://bugs.webkit.org/show_bug.cgi?id=169851
 

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt (0 => 214263)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize-expected.txt	2017-03-22 18:02:31 UTC (rev 214263)
@@ -0,0 +1,9 @@
+
+PASS Setting iceCandidatePoolSize to 10 
+PASS Setting iceCandidatePoolSize to 0 
+PASS Setting iceCandidatePoolSize to null 
+PASS Setting iceCandidatePoolSize to undefined 
+PASS Setting iceCandidatePoolSize to -1 
+PASS Setting iceCandidatePoolSize to 1000 
+PASS Setting iceCandidatePoolSize to string 
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html (0 => 214263)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcconfiguration-icecandidatepoolsize.html	2017-03-22 18:02:31 UTC (rev 214263)
@@ -0,0 +1,32 @@
+<!doctype html>
+<html>
+<head>
+<title>This test checks that RTCConfiguration.iceCandidatePoolSize is set</title>
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+function testICECandidatePoolSize(size, shouldThrow, expectedSize)
+{
+    test(function() {
+        if (shouldThrow) {
+            assert_throws(new TypeError(), () => new RTCPeerConnection({iceCandidatePoolSize: size}))
+            return
+        }
+        var pc = new RTCPeerConnection({iceCandidatePoolSize: size})
+        assert_equals(pc.getConfiguration().iceCandidatePoolSize, expectedSize !== undefined ? expectedSize : size)
+    }, "Setting iceCandidatePoolSize to " + size)
+}
+
+testICECandidatePoolSize(10)
+testICECandidatePoolSize(0)
+testICECandidatePoolSize(null, false, 0)
+testICECandidatePoolSize(undefined, false, 0)
+
+testICECandidatePoolSize(-1, true)
+testICECandidatePoolSize(1000, true)
+testICECandidatePoolSize("string", true)
+</script>
+</body>
+</html>

Deleted: trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt (214262 => 214263)


--- trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt	2017-03-22 18:00:22 UTC (rev 214262)
+++ trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize-expected.txt	2017-03-22 18:02:31 UTC (rev 214263)
@@ -1,12 +0,0 @@
-This test checks that RTCConfiguration.iceCandidatePoolSize is set.
-
-PASS pc.getConfiguration().iceCandidatePoolSize is 10
-PASS pc.getConfiguration().iceCandidatePoolSize is 0
-PASS pc.getConfiguration().iceCandidatePoolSize is 0
-PASS new RTCPeerConnection({iceCandidatePoolSize: -1}) threw exception TypeError: Error creating RTCPeerConnection.
-PASS new RTCPeerConnection({iceCandidatePoolSize: 1000}) threw exception TypeError: Error creating RTCPeerConnection.
-PASS new RTCPeerConnection({iceCandidatePoolSize: "string"}) threw exception TypeError: Error creating RTCPeerConnection.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Deleted: trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html (214262 => 214263)


--- trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html	2017-03-22 18:00:22 UTC (rev 214262)
+++ trunk/LayoutTests/webrtc/rtcconfiguration-icecandidatepoolsize.html	2017-03-22 18:02:31 UTC (rev 214263)
@@ -1,28 +0,0 @@
-<!doctype html>
-<html>
-<body>
-
-<script src=""
-<p>This test checks that RTCConfiguration.iceCandidatePoolSize is set.</p>
-<div id="console"></div>
-
-<script>
-pc = new RTCPeerConnection({iceCandidatePoolSize: 10});
-shouldBe('pc.getConfiguration().iceCandidatePoolSize', '10');
-
-pc = new RTCPeerConnection({iceCandidatePoolSize: undefined});
-shouldBe('pc.getConfiguration().iceCandidatePoolSize', '0');
-
-pc = new RTCPeerConnection({iceCandidatePoolSize: null});
-shouldBe('pc.getConfiguration().iceCandidatePoolSize', '0');
-
-shouldThrow('new RTCPeerConnection({iceCandidatePoolSize: -1})', '"TypeError: Error creating RTCPeerConnection"');
-shouldThrow('new RTCPeerConnection({iceCandidatePoolSize: 1000})', '"TypeError: Error creating RTCPeerConnection"');
-shouldThrow('new RTCPeerConnection({iceCandidatePoolSize: "string"})', '"TypeError: Error creating RTCPeerConnection"');
-
-</script>
-
-<script src=""
-
-</body>
-</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to