Skip to content

Commit 6c74b7e

Browse files
rmisevdomenic
authored andcommitted
Fix test cases intended for special URLs
Test cases in the setters_tests.json file below comment "Can’t switch from URL containing username/password/port to file" are intended for special URLs. But there are two test cases with "gopher" scheme, which is not special anymore. Fix these test cases by changing "gopher" to special scheme "https". Note. Test cases for non-special URLs are below comments "Can’t switch from special scheme to non-special" and "Can’t switch from non-special scheme to special".
1 parent f36b6b4 commit 6c74b7e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

url/resources/setters_tests.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@
119119
}
120120
},
121121
{
122-
"href": "gopher://example.net:1234",
122+
"href": "https://example.net:1234",
123123
"new_value": "file",
124124
"expected": {
125-
"href": "gopher://example.net:1234",
126-
"protocol": "gopher:"
125+
"href": "https://example.net:1234/",
126+
"protocol": "https:"
127127
}
128128
},
129129
{
@@ -145,7 +145,7 @@
145145
},
146146
{
147147
"href": "file:///test",
148-
"new_value": "gopher",
148+
"new_value": "https",
149149
"expected": {
150150
"href": "file:///test",
151151
"protocol": "file:"

0 commit comments

Comments
 (0)