Skip to content

Commit

Permalink
More tests for file URL Window drive letter quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored Jan 11, 2017
1 parent ee7ffe3 commit 462ac9f
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions url/a-element-origin-xhtml.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
<script src="a-element-origin.js"></script>
</body>
</html>
<!-- Other dependencies: urltestdata.json -->
1 change: 1 addition & 0 deletions url/a-element-origin.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
<base id=base>
<div id=log></div>
<script src=a-element-origin.js></script>
<!-- Other dependencies: urltestdata.json -->
1 change: 1 addition & 0 deletions url/a-element-xhtml.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
<script src="a-element.js"></script>
</body>
</html>
<!-- Other dependencies: urltestdata.json -->
1 change: 1 addition & 0 deletions url/a-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
<base id=base>
<div id=log></div>
<script src=a-element.js></script>
<!-- Other dependencies: urltestdata.json -->
71 changes: 71 additions & 0 deletions url/urltestdata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4667,5 +4667,76 @@
"pathname": "/",
"search": "",
"hash": ""
},
"# More file URL tests by zcorpan",
{
"input": "/",
"base": "file:///C:/a/b",
"href": "file:///C:/",
"protocol": "file:",
"username": "",
"password": "",
"host": "",
"hostname": "",
"port": "",
"pathname": "/C:/",
"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": ""
}
]

0 comments on commit 462ac9f

Please sign in to comment.