Skip to content

Commit 69b29fb

Browse files
rmisevannevk
authored andcommitted
URL: fix setters tests
These tests were introduced in the #38032. U+000D is a newline character and must be removed before further processing. Closes #38182. Co-authored-by: Anne van Kesteren <[email protected]>
1 parent 4fc0137 commit 69b29fb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: 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)