Skip to content

Commit bf5175b

Browse files
committed
test: update web platform tests
1 parent b632392 commit bf5175b

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

tests/wpt/setters_tests.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,24 @@
20212021
"href": "sc:/space%20",
20222022
"pathname": "/space%20"
20232023
}
2024+
},
2025+
{
2026+
"comment": "Trailing space should be encoded",
2027+
"href": "http://example.net",
2028+
"new_value": " ",
2029+
"expected": {
2030+
"href": "http://example.net/%20",
2031+
"pathname": "/%20"
2032+
}
2033+
},
2034+
{
2035+
"comment": "Trailing C0 control should be encoded",
2036+
"href": "http://example.net",
2037+
"new_value": "\u0000",
2038+
"expected": {
2039+
"href": "http://example.net/%00",
2040+
"pathname": "/%00"
2041+
}
20242042
}
20252043
],
20262044
"search": [
@@ -2141,6 +2159,24 @@
21412159
"href": "sc:space #fragment",
21422160
"search": ""
21432161
}
2162+
},
2163+
{
2164+
"comment": "Trailing space should be encoded",
2165+
"href": "http://example.net",
2166+
"new_value": " ",
2167+
"expected": {
2168+
"href": "http://example.net/?%20",
2169+
"search": "?%20"
2170+
}
2171+
},
2172+
{
2173+
"comment": "Trailing C0 control should be encoded",
2174+
"href": "http://example.net",
2175+
"new_value": "\u0000",
2176+
"expected": {
2177+
"href": "http://example.net/?%00",
2178+
"search": "?%00"
2179+
}
21442180
}
21452181
],
21462182
"hash": [
@@ -2311,6 +2347,24 @@
23112347
"href": "sc:space ?query",
23122348
"hash": ""
23132349
}
2350+
},
2351+
{
2352+
"comment": "Trailing space should be encoded",
2353+
"href": "http://example.net",
2354+
"new_value": " ",
2355+
"expected": {
2356+
"href": "http://example.net/#%20",
2357+
"hash": "#%20"
2358+
}
2359+
},
2360+
{
2361+
"comment": "Trailing C0 control should be encoded",
2362+
"href": "http://example.net",
2363+
"new_value": "\u0000",
2364+
"expected": {
2365+
"href": "http://example.net/#%00",
2366+
"hash": "#%00"
2367+
}
23142368
}
23152369
],
23162370
"href": [

0 commit comments

Comments
 (0)