From d60d3ebaac8015c4f92e299d48202c7e5d22ee41 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Tue, 21 Oct 2025 16:49:48 +0300 Subject: [PATCH] update `link.html` test --- src/tests/html/link.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/html/link.html b/src/tests/html/link.html index 0f1d869b..15da6461 100644 --- a/src/tests/html/link.html +++ b/src/tests/html/link.html @@ -16,8 +16,8 @@ testing.expectEqual('https://lightpanda.io', link.origin); link.host = 'lightpanda.io:443'; - testing.expectEqual('lightpanda.io:443', link.host); - testing.expectEqual('443', link.port); + testing.expectEqual('lightpanda.io', link.host); + testing.expectEqual('', link.port); testing.expectEqual('lightpanda.io', link.hostname); link.host = 'lightpanda.io'; @@ -42,9 +42,9 @@ testing.expectEqual('', link.port); link.port = '443'; - testing.expectEqual('foo.bar:443', link.host); + testing.expectEqual('foo.bar', link.host); testing.expectEqual('foo.bar', link.hostname); - testing.expectEqual('https://foo.bar:443/?q=bar#frag', link.href); + testing.expectEqual('https://foo.bar/?q=bar#frag', link.href); link.port = null; testing.expectEqual('https://foo.bar/?q=bar#frag', link.href);