diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-13 17:42:27 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-02-15 12:48:26 -0500 |
commit | abc01cc9fe45e7cfff195244773d1ddbeeea7c8d (patch) | |
tree | 83c9a6366d9a94d3bfb0fe982fbcb23f81fd4a2f /Tests | |
parent | 8af65108e4cff13993cd69d74b44acd5d3e9ee32 (diff) | |
download | serenity-abc01cc9fe45e7cfff195244773d1ddbeeea7c8d.zip |
AK+Tests+LibWeb: Make `URL::complete_url()` take a StringView
All it does is pass this to `URLParser::parse()` which takes a
StringView, so we might as well take one here too.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/AK/TestURL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/AK/TestURL.cpp b/Tests/AK/TestURL.cpp index 8df7c7212d..4ec7e35283 100644 --- a/Tests/AK/TestURL.cpp +++ b/Tests/AK/TestURL.cpp @@ -403,7 +403,7 @@ TEST_CASE(complete_file_url_with_base) EXPECT_EQ(url.paths()[0], "home"); EXPECT_EQ(url.paths()[1], "index.html"); - auto sub_url = url.complete_url("js/app.js"); + auto sub_url = url.complete_url("js/app.js"sv); EXPECT(sub_url.is_valid()); EXPECT_EQ(sub_url.path(), "/home/js/app.js"); } |