From 40460880fcd828caeac770f3c03d4f2074b70b2b Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 3 Oct 2019 01:15:52 +0000 Subject: [PATCH] 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 https://github.com/nodejs/node/pull/20479. -- wpt-commits: f0fe4791f5b87491d8d9662832fae543e4edbca1 wpt-pr: 10892 UltraBlame original commit: 497bd5c8c632f4828e13d82f8c7f0f6d7553126c --- testing/web-platform/meta/MANIFEST.json | 2 +- .../web-platform/tests/url/setters_tests.json | 97 +++++++++++++++++++ 2 files changed, 98 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 5d4203b24bd7b..a2a28ca67fcb2 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -4118267,7 +4118267,7 @@ json : [ " -8d58bd1c98f4d987e6abe66659c812591b197e60 +7c9707c02714de9a17989ecc71775978e994ae8a " " support diff --git a/testing/web-platform/tests/url/setters_tests.json b/testing/web-platform/tests/url/setters_tests.json index f4b3ec7336a16..895f69e746b66 100644 --- a/testing/web-platform/tests/url/setters_tests.json +++ b/testing/web-platform/tests/url/setters_tests.json @@ -5407,6 +5407,103 @@ comment " : " +Port +number +is +removed +if +new +port +is +scheme +default +and +existing +URL +has +a +non +- +default +port +" +" +href +" +: +" +http +: +/ +/ +example +. +net +: +8080 +" +" +new_value +" +: +" +example +. +com +: +80 +" +" +expected +" +: +{ +" +href +" +: +" +http +: +/ +/ +example +. +com +/ +" +" +host +" +: +" +example +. +com +" +" +hostname +" +: +" +example +. +com +" +" +port +" +: +" +" +} +} +{ +" +comment +" +: +" Stuff after a