Skip to content

Commit 7fcb915

Browse files
AyushG3112moz-wptsync-bot
authored andcommitted
Bug 1459897 [wpt PR 10892] - add url host test: Port number is removed if new port is scheme default, a=testonly
Automatic update from web-platform-testsURL: host setter with default port against URL with non-default port See nodejs/node#20479. -- wpt-commits: f0fe4791f5b87491d8d9662832fae543e4edbca1 wpt-pr: 10892
1 parent 790bfc0 commit 7fcb915

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

testing/web-platform/meta/MANIFEST.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609939,7 +609939,7 @@
609939609939
"testharness"
609940609940
],
609941609941
"url/setters_tests.json": [
609942-
"8d58bd1c98f4d987e6abe66659c812591b197e60",
609942+
"7c9707c02714de9a17989ecc71775978e994ae8a",
609943609943
"support"
609944609944
],
609945609945
"url/toascii.json": [

testing/web-platform/tests/url/setters_tests.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,17 @@
719719
"port": "80"
720720
}
721721
},
722+
{
723+
"comment": "Port number is removed if new port is scheme default and existing URL has a non-default port",
724+
"href": "http://example.net:8080",
725+
"new_value": "example.com:80",
726+
"expected": {
727+
"href": "http://example.com/",
728+
"host": "example.com",
729+
"hostname": "example.com",
730+
"port": ""
731+
}
732+
},
722733
{
723734
"comment": "Stuff after a / delimiter is ignored",
724735
"href": "http://example.net/path",

0 commit comments

Comments
 (0)