1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

AK: Add support for about: URLs

This commit is contained in:
Andreas Kling 2020-05-10 11:11:48 +02:00
parent 6b674db855
commit 56dbe58bbb
2 changed files with 21 additions and 0 deletions

View file

@ -148,4 +148,13 @@ TEST_CASE(file_url_without_hostname)
EXPECT_EQ(url.to_string(), "file:///my/file");
}
TEST_CASE(about_url)
{
URL url("about:blank");
EXPECT_EQ(url.is_valid(), true);
EXPECT_EQ(url.protocol(), "about");
EXPECT_EQ(url.path(), "blank");
EXPECT_EQ(url.to_string(), "about:blank");
}
TEST_MAIN(URL)