Title: [206792] trunk/Tools
Revision
206792
Author
achristen...@apple.com
Date
2016-10-04 16:13:33 -0700 (Tue, 04 Oct 2016)

Log Message

Add tests verifying non-special URL hosts are parsed according to spec
https://bugs.webkit.org/show_bug.cgi?id=162885

Reviewed by Sam Weinig.

* TestWebKitAPI/Tests/WebCore/URLParser.cpp:
(TestWebKitAPI::TEST_F):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (206791 => 206792)


--- trunk/Tools/ChangeLog	2016-10-04 23:10:26 UTC (rev 206791)
+++ trunk/Tools/ChangeLog	2016-10-04 23:13:33 UTC (rev 206792)
@@ -1,3 +1,13 @@
+2016-10-04  Alex Christensen  <achristen...@webkit.org>
+
+        Add tests verifying non-special URL hosts are parsed according to spec
+        https://bugs.webkit.org/show_bug.cgi?id=162885
+
+        Reviewed by Sam Weinig.
+
+        * TestWebKitAPI/Tests/WebCore/URLParser.cpp:
+        (TestWebKitAPI::TEST_F):
+
 2016-10-04  Anders Carlsson  <ander...@apple.com>
 
         Properly kill web processes in the launching state

Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp (206791 => 206792)


--- trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp	2016-10-04 23:10:26 UTC (rev 206791)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp	2016-10-04 23:13:33 UTC (rev 206792)
@@ -850,6 +850,15 @@
     checkRelativeURLDifferences("http://f:010/c", "http://example.org/foo/bar",
         {"http", "", "", "f", 10, "/c", "", "", "http://f:10/c"},
         {"http", "", "", "f", 10, "/c", "", "", "http://f:010/c"});
+    checkURLDifferences("notspecial://HoSt",
+        {"notspecial", "", "", "host", 0, "/", "", "", "notspecial://host/"},
+        {"notspecial", "", "", "HoSt", 0, "", "", "", "notspecial://HoSt"});
+    checkURLDifferences("notspecial://H%4fSt",
+        {"notspecial", "", "", "host", 0, "/", "", "", "notspecial://host/"},
+        {"notspecial", "", "", "H%4fSt", 0, "", "", "", "notspecial://H%4fSt"});
+    checkURLDifferences(utf16String(u"notspecial://H😍ßt"),
+        {"notspecial", "", "", "xn--hsst-qc83c", 0, "/", "", "", "notspecial://xn--hsst-qc83c/"},
+        {"notspecial", "", "", "xn--hsst-qc83c", 0, "", "", "", "notspecial://xn--hsst-qc83c"}, testTabsValueForSurrogatePairs);
 }
 
 TEST_F(URLParserTest, DefaultPort)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to