Commit f278efac authored by Rimas Misevičius's avatar Rimas Misevičius Committed by moz-wptsync-bot
Browse files

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 https://github.com/web-platform-tests/wpt/pull/38032

.

U+000D is a newline character and must be removed before further processing.

Closes #38182.

Co-authored-by: default avatarAnne van Kesteren <annevk@annevk.nl>
--

wpt-commits: f1ade799d04b72b0ff75c13e988744c2cd873741
wpt-pr: 38150
parent 84e36471
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -273,13 +273,21 @@
        {
            "comment": "Tab and newline are stripped",
            "href": "http://test/",
            "new_value": "h\u000A\u000Att\u0009ps",
            "new_value": "h\u000D\u000Att\u0009ps",
            "expected": {
              "href": "https://test/",
              "protocol": "https:",
              "port": ""
            }
        },
        {
            "href": "http://test/",
            "new_value": "https\u000D",
            "expected": {
              "href": "https://test/",
              "protocol": "https:"
            }
        },
        {
            "comment": "Non-tab/newline C0 controls result in no-op",
            "href": "http://test/",
@@ -299,7 +307,7 @@
        },
        {
            "href": "http://test/",
            "new_value": "https\u000D",
            "new_value": "https\u000E",
            "expected": {
              "href": "http://test/",
              "protocol": "http:"