Skip to content

Commit 7e1594b

Browse files
committed
test: update web platform tests
1 parent 31edab7 commit 7e1594b

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

tests/wpt/setters_tests.json

+72
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,42 @@
11411141
"host": "example.com",
11421142
"hostname": "example.com"
11431143
}
1144+
},
1145+
{
1146+
"href": "https://test.invalid/",
1147+
"new_value": "*",
1148+
"expected": {
1149+
"href": "https://*/",
1150+
"host": "*",
1151+
"hostname": "*"
1152+
}
1153+
},
1154+
{
1155+
"href": "https://test.invalid/",
1156+
"new_value": "x@x",
1157+
"expected": {
1158+
"href": "https://test.invalid/",
1159+
"host": "test.invalid",
1160+
"hostname": "test.invalid"
1161+
}
1162+
},
1163+
{
1164+
"href": "https://test.invalid/",
1165+
"new_value": "foo\t\r\nbar",
1166+
"expected": {
1167+
"href": "https://foobar/",
1168+
"host": "foobar",
1169+
"hostname": "foobar"
1170+
}
1171+
},
1172+
{
1173+
"href": "https://test.invalid/",
1174+
"new_value": "><",
1175+
"expected": {
1176+
"href": "https://test.invalid/",
1177+
"host": "test.invalid",
1178+
"hostname": "test.invalid"
1179+
}
11441180
}
11451181
],
11461182
"hostname": [
@@ -1552,6 +1588,42 @@
15521588
"host": "example.com",
15531589
"hostname": "example.com"
15541590
}
1591+
},
1592+
{
1593+
"href": "https://test.invalid/",
1594+
"new_value": "*",
1595+
"expected": {
1596+
"href": "https://*/",
1597+
"host": "*",
1598+
"hostname": "*"
1599+
}
1600+
},
1601+
{
1602+
"href": "https://test.invalid/",
1603+
"new_value": "x@x",
1604+
"expected": {
1605+
"href": "https://test.invalid/",
1606+
"host": "test.invalid",
1607+
"hostname": "test.invalid"
1608+
}
1609+
},
1610+
{
1611+
"href": "https://test.invalid/",
1612+
"new_value": "foo\t\r\nbar",
1613+
"expected": {
1614+
"href": "https://foobar/",
1615+
"host": "foobar",
1616+
"hostname": "foobar"
1617+
}
1618+
},
1619+
{
1620+
"href": "https://test.invalid/",
1621+
"new_value": "><",
1622+
"expected": {
1623+
"href": "https://test.invalid/",
1624+
"host": "test.invalid",
1625+
"hostname": "test.invalid"
1626+
}
15551627
}
15561628
],
15571629
"port": [

0 commit comments

Comments
 (0)