Skip to content

Commit ce8b48a

Browse files
rmisevmoz-wptsync-bot
authored andcommitted
Bug 1812147 [wpt PR 38150] - URL: fix setters tests, a=testonly
Automatic update from web-platform-tests URL: fix setters tests These tests were introduced in the web-platform-tests/wpt#38032. U+000D is a newline character and must be removed before further processing. Closes #38182. Co-authored-by: Anne van Kesteren <[email protected]> -- wpt-commits: f1ade799d04b72b0ff75c13e988744c2cd873741 wpt-pr: 38150
1 parent 806e250 commit ce8b48a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: testing/web-platform/tests/url/resources/setters_tests.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,21 @@
273273
{
274274
"comment": "Tab and newline are stripped",
275275
"href": "http://test/",
276-
"new_value": "h\u000A\u000Att\u0009ps",
276+
"new_value": "h\u000D\u000Att\u0009ps",
277277
"expected": {
278278
"href": "https://test/",
279279
"protocol": "https:",
280280
"port": ""
281281
}
282282
},
283+
{
284+
"href": "http://test/",
285+
"new_value": "https\u000D",
286+
"expected": {
287+
"href": "https://test/",
288+
"protocol": "https:"
289+
}
290+
},
283291
{
284292
"comment": "Non-tab/newline C0 controls result in no-op",
285293
"href": "http://test/",
@@ -299,7 +307,7 @@
299307
},
300308
{
301309
"href": "http://test/",
302-
"new_value": "https\u000D",
310+
"new_value": "https\u000E",
303311
"expected": {
304312
"href": "http://test/",
305313
"protocol": "http:"

0 commit comments

Comments
 (0)