chromium/third_party/blink/web_tests/fast/dom/HTMLAnchorElement/set-href-attribute-pathname-expected.txt

Test setting the pathname attribute of the URL in HTMLAnchorElement.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

Set pathname that starts with slash
PASS a.href is 'https://www.mydomain.com/path%20name?key=value'
Set pathname that does not start with slash and contains '?'
PASS a.href is 'https://www.mydomain.com/pa%3Fth?key=value'
Set pathname that starts with double slash and contains '#'
PASS a.href is 'https://www.mydomain.com//path%23name?key=value'
Set a pathname containing .. in it
PASS a.href is 'https://www.mydomain.com/path?key=value'
Set pathname to null
PASS a.href is 'https://www.mydomain.com/null?key=value'
Set pathname to empty string
PASS a.href is 'https://www.mydomain.com/?key=value'
Set pathname that includes illegal characters to URL that contains illegal characters.
PASS a.href is 'https://www.my|d[]()omain.com/path/testurl.html?key=value'
Set pathname to URL that contains '@' in host
PASS a.href is 'http://w@#ww'
Set pathname to a URL with non-hierarchical protocol
PASS a.href is 'tel:+1800-555-1212'
PASS successfullyParsed is true

TEST COMPLETE