From 9ced81e639a0564dd2f737501c1ed7bc2b730b4b Mon Sep 17 00:00:00 2001 From: "achristensen@apple.com" Date: Tue, 4 Oct 2016 23:13:33 +0000 Subject: [PATCH] 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): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@206792 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Tools/ChangeLog | 10 ++++++++++ Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/Tools/ChangeLog b/Tools/ChangeLog index be3a7d78a4df9..9d61eaecca035 100644 --- a/Tools/ChangeLog +++ b/Tools/ChangeLog @@ -1,3 +1,13 @@ +2016-10-04 Alex Christensen + + 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 Properly kill web processes in the launching state diff --git a/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp b/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp index fc7bdee7b2a4f..ae1c7d06cb90e 100644 --- a/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp +++ b/Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp @@ -850,6 +850,15 @@ TEST_F(URLParserTest, ParserDifferences) 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)