From 39f7e724405c81b7e5905e003f431ac034b79cd5 Mon Sep 17 00:00:00 2001 From: Daijiro Wachi Date: Sun, 5 Mar 2017 16:40:23 +0100 Subject: [PATCH] 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: https://github.com/w3c/web-platform-tests/pull/4941 PR-URL: https://github.com/nodejs/node/pull/11426 Reviewed-By: Joyee Cheung Reviewed-By: Anna Henningsen Reviewed-By: Timothy Gu Reviewed-By: James M Snell --- test/fixtures/url-tests.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test/fixtures/url-tests.js b/test/fixtures/url-tests.js index 3e303910ca6e19..0e510eb366d0f2 100644 --- a/test/fixtures/url-tests.js +++ b/test/fixtures/url-tests.js @@ -5622,5 +5622,33 @@ module.exports = "input": "non-special://[:80/", "base": "about:blank", "failure": true + }, + { + "input": "blob:https://example.com:443/", + "base": "about:blank", + "href": "blob:https://example.com:443/", + "protocol": "blob:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "https://example.com:443/", + "search": "", + "hash": "" + }, + { + "input": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf", + "base": "about:blank", + "href": "blob:d3958f5c-0777-0845-9dcf-2cb28783acaf", + "protocol": "blob:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "d3958f5c-0777-0845-9dcf-2cb28783acaf", + "search": "", + "hash": "" } ]