Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt

Issue 26506003: Setting host without port should keep old port (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: git rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test setting the host attribute of the URL in HTMLAnchorElement. 1 Test setting the host attribute of the URL in HTMLAnchorElement.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Basic test 6 Basic test
7 PASS a.href is 'https://www.otherdomain.com:0/path/' 7 PASS a.href is 'https://www.otherdomain.com:0/path/'
8 Set host without port
9 PASS a.href is 'https://www.otherdomain.com:8080/path/'
8 Set host with '?' in it 10 Set host with '?' in it
9 FAIL a.href should be https://www.other/?domain.com:8080/path/?key=value. Was ht tps://www.other%3Fdomain.com:8080/path/?key=value. 11 FAIL a.href should be https://www.other/?domain.com:8080/path/?key=value. Was ht tps://www.other%3Fdomain.com:8080/path/?key=value.
10 Set default port for another protocol 12 Set default port for another protocol
11 PASS a.href is 'https://www.otherdomain.com:80/path/' 13 PASS a.href is 'https://www.otherdomain.com:80/path/'
12 Set default port 14 Set default port
13 PASS a.href is 'https://www.otherdomain.com/path/' 15 PASS a.href is 'https://www.otherdomain.com/path/'
16 Set host with invalid port
17 PASS a.href is 'https://www.otherdomain.com:0/path/'
14 Set host with letters in port number 18 Set host with letters in port number
15 PASS a.href is 'https://www.otherdomain.com:44/path/' 19 PASS a.href is 'https://www.otherdomain.com:44/path/'
16 Leading space in port number 20 Leading space in port number
17 PASS a.href is 'https://www.otherdomain.com:0/path/' 21 PASS a.href is 'https://www.otherdomain.com:0/path/'
18 Colon without port number 22 Colon without port number
19 PASS a.href is 'https://www.otherdomain.com:0/path/' 23 PASS a.href is 'https://www.otherdomain.com:0/path/'
20 Set host to null 24 Set host to null
21 FAIL a.href should be https://null:8080/path/. Was https://null/path/. 25 PASS a.href is 'https://null:8080/path/'
22 Set host to empty string 26 Set host to empty string
23 PASS a.href is 'https://www.mydomain.com:8080/path/' 27 PASS a.href is 'https://www.mydomain.com:8080/path/'
24 Set host to URL with file: protocol 28 Set host to URL with file: protocol
25 PASS a.href is 'file://mydomain.com/path/' 29 PASS a.href is 'file://mydomain.com/path/'
26 Set host containing slashes in it 30 Set host containing slashes in it
27 FAIL a.href should be https://www.otherdom/ain.com/path/. Was https://www.otherd om%2Fain.com/path/. 31 PASS a.href is 'https://www.otherdom%2Fain.com:8080/path/'
28 Set host to a malformed URL 32 Set host to a malformed URL
29 FAIL a.href should be https:/ 33 FAIL a.href should be https:/
30 ww.my@domain.com:8080/path/. Was https://ww.my@www.other%21domain.com:15/path/. 34 ww.my@domain.com:8080/path/. Was https://ww.my@www.other%21domain.com:15/path/.
31 Set host that starts with ':' 35 Set host that starts with ':'
32 PASS a.href is 'https://domain.com:8080/path/' 36 PASS a.href is 'https://domain.com:8080/path/'
33 Set host to URL containing username and .. 37 Set host to URL containing username and ..
34 FAIL a.href should be https://rwwmy@www.other!domain.com:25/pa..th/. Was https:/ /rwwmy@www.other%21domain.com:25/pa..th/. 38 FAIL a.href should be https://rwwmy@www.other!domain.com:25/pa..th/. Was https:/ /rwwmy@www.other%21domain.com:25/pa..th/.
35 Set host to a URL with tel: protocol 39 Set host to a URL with tel: protocol
36 PASS a.href is 'tel:+1-816-555-1212' 40 PASS a.href is 'tel:+1-816-555-1212'
37 PASS successfullyParsed is true 41 PASS successfullyParsed is true
38 42
39 TEST COMPLETE 43 TEST COMPLETE
40 44
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLAnchorElement/script-tests/set-href-attribute-host.js ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698