set-href-attribute-port-expected.txt revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1Test setting the port attribute of the URL in HTMLAnchorElement.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6Default port as number
7PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value'
8Default port as string
9PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value'
10Set port to 0
11PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
12Set port to non-number
13PASS a.href is 'https://www.mydomain.com:4/path/testurl.html?key=value'
14Set port to null
15PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
16Set port to empty string
17PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
18Set port to undefined
19PASS a.href is 'https://www.mydomain.com:0/path/testurl.html?key=value'
20Set port to URL with foo: protocol
21PASS a.href is 'foo://bar:50/'
22PASS successfullyParsed is true
23
24TEST COMPLETE
25
26