set-href-attribute-host-expected.txt revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1Test setting the host attribute of the URL in HTMLAnchorElement.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6Basic test
7PASS a.href is 'https://www.otherdomain.com:0/path/'
8Set host with '?' in it
9PASS a.href is 'https://www.other/?domain.com:8080/path/?key=value'
10Set default port for another protocol
11PASS a.href is 'https://www.otherdomain.com:80/path/'
12Set default port
13PASS a.href is 'https://www.otherdomain.com/path/'
14Set host with letters in port number
15PASS a.href is 'https://www.otherdomain.com:44/path/'
16Leading space in port number
17PASS a.href is 'https://www.otherdomain.com:0/path/'
18Colon without port number
19PASS a.href is 'https://www.otherdomain.com:0/path/'
20Set host to null
21PASS a.href is 'https://www.mydomain.com:8080/path/'
22Set host to empty string
23PASS a.href is 'https://www.mydomain.com:8080/path/'
24Set host to URL with file: protocol
25PASS a.href is 'file://mydomain.com/path/'
26Set host containing slashes in it
27PASS a.href is 'https://www.otherdom/ain.com/path/'
28Set host to a malformed URL
29PASS a.href is 'https://www.other!domain.com:15/ww.my@domain.com:8080/path/'
30Set host that starts with ':'
31PASS a.href is 'https://domain.com:8080/path/'
32Set host to URL containing username and ..
33PASS a.href is 'https://rwwmy@www.other!domain.com:25/pa..th/'
34Set host to a URL with tel: protocol
35PASS a.href is 'tel:+1-816-555-1212'
36PASS successfullyParsed is true
37
38TEST COMPLETE
39
40