mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefResolveURL function (fixes issue #3402)
This commit is contained in:
committed by
Marshall Greenblatt
parent
5433d9fe5c
commit
e0c878df5f
@@ -264,6 +264,18 @@ TEST(ParserTest, ParseURLNonStandard) {
|
||||
EXPECT_STREQ("ref", ref.ToString().c_str());
|
||||
}
|
||||
|
||||
// Combine and parse an absolute and relative URL.
|
||||
TEST(ParserTest, ParseAbsoluteAndRelativeURL) {
|
||||
CefString base_url;
|
||||
base_url.FromASCII("https://www.example.com");
|
||||
CefString relative_url;
|
||||
relative_url.FromASCII("/example");
|
||||
CefString resolved_url;
|
||||
EXPECT_TRUE(CefResolveURL(base_url, relative_url, resolved_url));
|
||||
EXPECT_STREQ("https://www.example.com/example",
|
||||
resolved_url.ToString().c_str());
|
||||
}
|
||||
|
||||
TEST(ParserTest, FormatUrlForSecurityDisplay) {
|
||||
CefString result;
|
||||
|
||||
|
Reference in New Issue
Block a user