diff options
Diffstat (limited to 'url')
-rw-r--r-- | url/gurl_unittest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/url/gurl_unittest.cc b/url/gurl_unittest.cc index a699189..bea1a0c 100644 --- a/url/gurl_unittest.cc +++ b/url/gurl_unittest.cc @@ -281,6 +281,9 @@ TEST(GURLTest, Resolve) { const char* expected; } resolve_cases[] = { {"http://www.google.com/", "foo.html", true, "http://www.google.com/foo.html"}, + {"http://www.google.com/foo/", "bar", true, "http://www.google.com/foo/bar"}, + {"http://www.google.com/foo/", "/bar", true, "http://www.google.com/bar"}, + {"http://www.google.com/foo", "bar", true, "http://www.google.com/bar"}, {"http://www.google.com/", "http://images.google.com/foo.html", true, "http://images.google.com/foo.html"}, {"http://www.google.com/blah/bloo?c#d", "../../../hello/./world.html?a#b", true, "http://www.google.com/hello/world.html?a#b"}, {"http://www.google.com/foo#bar", "#com", true, "http://www.google.com/foo#com"}, |