Skip to content

Commit 5df9110

Browse files
watildeaddaleax
authored andcommitted
test: check the origin of the blob URLs
In the getter of the origin in URL, the URL that has blob protocol will be parsed in a function called "originFor". Add test cases into the url-tests-additional fixture to test that. Refs: web-platform-tests/wpt#4941 PR-URL: #11426 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b4dcb26 commit 5df9110

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/fixtures/url-tests.js

+28
Original file line numberDiff line numberDiff line change
@@ -5622,5 +5622,33 @@ module.exports =
56225622
"input": "non-special://[:80/",
56235623
"base": "about:blank",
56245624
"failure": true
5625+
},
5626+
{
5627+
"input": "blob:https://example.com:443/",
5628+
"base": "about:blank",
5629+
"href": "blob:https://example.com:443/",
5630+
"protocol": "blob:",
5631+
"username": "",
5632+
"password": "",
5633+
"host": "",
5634+
"hostname": "",
5635+
"port": "",
5636+
"pathname": "https://example.com:443/",
5637+
"search": "",
5638+
"hash": ""
5639+
},
5640+
{
5641+
"input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
5642+
"base": "about:blank",
5643+
"href": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf",
5644+
"protocol": "blob:",
5645+
"username": "",
5646+
"password": "",
5647+
"host": "",
5648+
"hostname": "",
5649+
"port": "",
5650+
"pathname": "d3958f5c-0777-0845-9dcf-2cb28783acaf",
5651+
"search": "",
5652+
"hash": ""
56255653
}
56265654
]

0 commit comments

Comments
 (0)