From 791ad12031abf61fa1a63806c84f83d1db5ff1d2 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 17 Sep 2023 13:41:14 +1200 Subject: [PATCH] LibWeb/Tests: Support URL tests with an input base --- Tests/LibWeb/Text/expected/URL/url.txt | 12 ++++++------ Tests/LibWeb/Text/input/URL/url.html | 24 ++++++++++++++---------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/Tests/LibWeb/Text/expected/URL/url.txt b/Tests/LibWeb/Text/expected/URL/url.txt index 5325c1803f..9ab7cc586d 100644 --- a/Tests/LibWeb/Text/expected/URL/url.txt +++ b/Tests/LibWeb/Text/expected/URL/url.txt @@ -1,4 +1,4 @@ -ftp://serenityos.org:21 +new URL('ftp://serenityos.org:21', undefined) protocol => 'ftp:' username => '' password => '' @@ -8,7 +8,7 @@ port => '' pathname => '/' search => '' hash => '' -http://[0:1:0:1:0:1:0:1] +new URL('http://[0:1:0:1:0:1:0:1]', undefined) protocol => 'http:' username => '' password => '' @@ -18,7 +18,7 @@ port => '' pathname => '/' search => '' hash => '' -http://[1:0:1:0:1:0:1:0] +new URL('http://[1:0:1:0:1:0:1:0]', undefined) protocol => 'http:' username => '' password => '' @@ -28,7 +28,7 @@ port => '' pathname => '/' search => '' hash => '' -http://[1:1:0:0:1:0:0:0]/ +new URL('http://[1:1:0:0:1:0:0:0]/', undefined) protocol => 'http:' username => '' password => '' @@ -38,7 +38,7 @@ port => '' pathname => '/' search => '' hash => '' -unknown://serenityos.org:0 +new URL('unknown://serenityos.org:0', undefined) protocol => 'unknown:' username => '' password => '' @@ -48,7 +48,7 @@ port => '0' pathname => '' search => '' hash => '' -http://serenityos.org/cat?dog#meow"woof +new URL('http://serenityos.org/cat?dog#meow"woof', undefined) protocol => 'http:' username => '' password => '' diff --git a/Tests/LibWeb/Text/input/URL/url.html b/Tests/LibWeb/Text/input/URL/url.html index b8832fc355..51031e92e5 100644 --- a/Tests/LibWeb/Text/input/URL/url.html +++ b/Tests/LibWeb/Text/input/URL/url.html @@ -1,9 +1,13 @@