Skip to content

Commit

Permalink
Add tests verifying non-special URL hosts are parsed according to spec
Browse files Browse the repository at this point in the history
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
  • Loading branch information
[email protected] committed Oct 4, 2016
1 parent 22ca87a commit 9ced81e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2016-10-04 Alex Christensen <[email protected]>

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 <[email protected]>

Properly kill web processes in the launching state
Expand Down
9 changes: 9 additions & 0 deletions Tools/TestWebKitAPI/Tests/WebCore/URLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ced81e

Please sign in to comment.