Skip to content

Commit fafac6e

Browse files
nodejs-github-botaduh95
authored andcommitted
test: update WPT for url to 4832db4761
PR-URL: #64829 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 960cc2c commit fafac6e

4 files changed

Lines changed: 56 additions & 12 deletions

File tree

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
features:
2-
- name: url
3-
files:
4-
- "*"
5-
- "!url-statics-canparse.*"
6-
- name: url-canparse
7-
files:
8-
- url-statics-canparse.*
9-
- name: base
10-
files:
11-
- a-element*
1+
rules:
2+
- url-statics-canparse.*: [url-canparse]
3+
- a-element*: [base, url]
4+
- "*": [url]

test/fixtures/wpt/url/resources/setters_tests.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,7 @@
19001900
"href": "https://domain.com:443",
19011901
"new_value": "\u00098080",
19021902
"expected": {
1903+
"href": "https://domain.com:8080/",
19031904
"port": "8080"
19041905
}
19051906
},
@@ -1908,6 +1909,7 @@
19081909
"href": "wpt++://domain.com:443",
19091910
"new_value": "\u00098080",
19101911
"expected": {
1912+
"href": "wpt++://domain.com:8080",
19111913
"port": "8080"
19121914
}
19131915
},
@@ -1916,20 +1918,23 @@
19161918
"href": "https://www.google.com:4343",
19171919
"new_value": "4wpt",
19181920
"expected": {
1921+
"href": "https://www.google.com:4/",
19191922
"port": "4"
19201923
}
19211924
},
19221925
{
19231926
"href": "https://domain.com:3000",
19241927
"new_value": "\n\t80\n\t80\n\t",
19251928
"expected": {
1929+
"href": "https://domain.com:8080/",
19261930
"port": "8080"
19271931
}
19281932
},
19291933
{
19301934
"href": "https://domain.com:3000",
19311935
"new_value": "\n\n\t\t",
19321936
"expected": {
1937+
"href": "https://domain.com:3000/",
19331938
"port": "3000"
19341939
}
19351940
}

test/fixtures/wpt/url/resources/urltestdata.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,6 +4373,52 @@
43734373
"search": "",
43744374
"hash": ""
43754375
},
4376+
"Astral code point followed by a trailing character in the userinfo",
4377+
{
4378+
"input": "http://😀x@host/",
4379+
"base": null,
4380+
"href": "http://%F0%9F%98%80x@host/",
4381+
"origin": "http://host",
4382+
"protocol": "http:",
4383+
"username": "%F0%9F%98%80x",
4384+
"password": "",
4385+
"host": "host",
4386+
"hostname": "host",
4387+
"port": "",
4388+
"pathname": "/",
4389+
"search": "",
4390+
"hash": ""
4391+
},
4392+
{
4393+
"input": "http://a:😀x@host/",
4394+
"base": null,
4395+
"href": "http://a:%F0%9F%98%80x@host/",
4396+
"origin": "http://host",
4397+
"protocol": "http:",
4398+
"username": "a",
4399+
"password": "%F0%9F%98%80x",
4400+
"host": "host",
4401+
"hostname": "host",
4402+
"port": "",
4403+
"pathname": "/",
4404+
"search": "",
4405+
"hash": ""
4406+
},
4407+
{
4408+
"input": "http://😀@host/",
4409+
"base": null,
4410+
"href": "http://%F0%9F%98%80@host/",
4411+
"origin": "http://host",
4412+
"protocol": "http:",
4413+
"username": "%F0%9F%98%80",
4414+
"password": "",
4415+
"host": "host",
4416+
"hostname": "host",
4417+
"port": "",
4418+
"pathname": "/",
4419+
"search": "",
4420+
"hash": ""
4421+
},
43764422
{
43774423
"input": "https://localhost?q=🔥",
43784424
"base": null,

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"path": "streams"
7373
},
7474
"url": {
75-
"commit": "b63305b743ed9ce2725d4ae09c5c8f0c40d8e6e1",
75+
"commit": "4832db47614f5f48cc57374cbf5c1f70937fad48",
7676
"path": "url"
7777
},
7878
"urlpattern": {

0 commit comments

Comments
 (0)