Skip to content

Commit d60d3eb

Browse files
committed
update link.html test
1 parent ba66b7c commit d60d3eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests/html/link.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
testing.expectEqual('https://lightpanda.io', link.origin);
1717

1818
link.host = 'lightpanda.io:443';
19-
testing.expectEqual('lightpanda.io:443', link.host);
20-
testing.expectEqual('443', link.port);
19+
testing.expectEqual('lightpanda.io', link.host);
20+
testing.expectEqual('', link.port);
2121
testing.expectEqual('lightpanda.io', link.hostname);
2222

2323
link.host = 'lightpanda.io';
@@ -42,9 +42,9 @@
4242

4343
testing.expectEqual('', link.port);
4444
link.port = '443';
45-
testing.expectEqual('foo.bar:443', link.host);
45+
testing.expectEqual('foo.bar', link.host);
4646
testing.expectEqual('foo.bar', link.hostname);
47-
testing.expectEqual('https://foo.bar:443/?q=bar#frag', link.href);
47+
testing.expectEqual('https://foo.bar/?q=bar#frag', link.href);
4848
link.port = null;
4949
testing.expectEqual('https://foo.bar/?q=bar#frag', link.href);
5050

0 commit comments

Comments
 (0)