From 047e53203bbd156b945f34cf42c1ea37db750568 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Thu, 22 Dec 2016 12:39:29 +0100 Subject: [PATCH 1/4] More tests for file URL Window drive letter quirk --- url/urltestdata.json | 71 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/url/urltestdata.json b/url/urltestdata.json index cd96644b8e9d39..d4c8a25fd2b9fe 100644 --- a/url/urltestdata.json +++ b/url/urltestdata.json @@ -4647,5 +4647,76 @@ "pathname": "/", "search": "", "hash": "" + }, + "# More file URL tests by zcorpan", + { + "input": "/", + "base": "file:///C:/a/b", + "href": "file:///", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/", + "search": "", + "hash": "" + }, + { + "input": "//d:", + "base": "file:///C:/a/b", + "href": "file://d:/", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/d:/", + "search": "", + "hash": "" + }, + { + "input": "//d:/..", + "base": "file:///C:/a/b", + "href": "file://d:/", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/d:/", + "search": "", + "hash": "" + }, + { + "input": "..", + "base": "file:///ab:/", + "href": "file:///", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/", + "search": "", + "hash": "" + }, + { + "input": "..", + "base": "file:///1:/", + "href": "file:///", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/", + "search": "", + "hash": "" } ] From 0604ed6685e1eea8d43ff94bd18072fc4d563f24 Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Thu, 22 Dec 2016 15:05:45 +0100 Subject: [PATCH 2/4] Include dependencies for the stability checker --- url/a-element-origin-xhtml.xhtml | 1 + url/a-element-origin.html | 1 + url/a-element-xhtml.xhtml | 1 + url/a-element.html | 1 + 4 files changed, 4 insertions(+) diff --git a/url/a-element-origin-xhtml.xhtml b/url/a-element-origin-xhtml.xhtml index d1741bbf073502..3d0d72efcb4c4d 100644 --- a/url/a-element-origin-xhtml.xhtml +++ b/url/a-element-origin-xhtml.xhtml @@ -12,3 +12,4 @@ + diff --git a/url/a-element-origin.html b/url/a-element-origin.html index bd2f4547adaba7..28ef696b4c1a8d 100644 --- a/url/a-element-origin.html +++ b/url/a-element-origin.html @@ -5,3 +5,4 @@
+ diff --git a/url/a-element-xhtml.xhtml b/url/a-element-xhtml.xhtml index 7e11e6d757a1c4..fda4c3604ef6c6 100644 --- a/url/a-element-xhtml.xhtml +++ b/url/a-element-xhtml.xhtml @@ -12,3 +12,4 @@ + diff --git a/url/a-element.html b/url/a-element.html index b190b949d2ccec..1b7e2fdd3fa178 100644 --- a/url/a-element.html +++ b/url/a-element.html @@ -5,3 +5,4 @@
+ From 57d2c08e88edf82c0a33a6f8da66691e0d8d9edb Mon Sep 17 00:00:00 2001 From: Simon Pieters Date: Mon, 2 Jan 2017 15:37:32 +0100 Subject: [PATCH 3/4] Align expected results with actual results of jsdom/whatwg-url --- url/urltestdata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/url/urltestdata.json b/url/urltestdata.json index d4c8a25fd2b9fe..41c4b5ac866171 100644 --- a/url/urltestdata.json +++ b/url/urltestdata.json @@ -4652,7 +4652,7 @@ { "input": "/", "base": "file:///C:/a/b", - "href": "file:///", + "href": "file:///C:/", "protocol": "file:", "username": "", "password": "", @@ -4666,7 +4666,7 @@ { "input": "//d:", "base": "file:///C:/a/b", - "href": "file://d:/", + "href": "file:///d:", "protocol": "file:", "username": "", "password": "", @@ -4680,7 +4680,7 @@ { "input": "//d:/..", "base": "file:///C:/a/b", - "href": "file://d:/", + "href": "file:///d:/", "protocol": "file:", "username": "", "password": "", From 9f6daca7cc0c20d65c81b37e637ebbaf37b31512 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 10 Jan 2017 16:47:41 -0500 Subject: [PATCH 4/4] Fix expected pathnames --- url/urltestdata.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/url/urltestdata.json b/url/urltestdata.json index 41c4b5ac866171..35d5e1e5319be6 100644 --- a/url/urltestdata.json +++ b/url/urltestdata.json @@ -4659,7 +4659,7 @@ "host": "", "hostname": "", "port": "", - "pathname": "/", + "pathname": "/C:/", "search": "", "hash": "" }, @@ -4673,7 +4673,7 @@ "host": "", "hostname": "", "port": "", - "pathname": "/d:/", + "pathname": "/d:", "search": "", "hash": "" },