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

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

Issue 26248003: Do not special case null for URLUtils attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix linux specific exceptions again 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 hash attribute of the URL in HTMLAnchorElement. 1 Test setting the hash 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 Hash value does not start with '#' 6 Hash value does not start with '#'
7 PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value' 7 PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value'
8 Hash value starts with '#' 8 Hash value starts with '#'
9 PASS a.href is 'file:///path/testurl.html#hash_value' 9 PASS a.href is 'file:///path/testurl.html#hash_value'
10 '?' in hash value 10 '?' in hash value
11 PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value' 11 PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value'
12 '#' in hash value, and illegal characters in hostname 12 '#' in hash value, and illegal characters in hostname
13 FAIL a.href should be https://www.my"d(){}|~om?ain#com/path/testurl.html#middle. Was https://www.my%22d%28%29%7B%7D%7C%7Eom/?ain#hash#value. 13 FAIL a.href should be https://www.my"d(){}|~om?ain#com/path/testurl.html#middle. Was https://www.my%22d%28%29%7B%7D%7C%7Eom/?ain#hash#value.
14 Set hash to null 14 Set hash to null
15 FAIL a.href should be https://www.mydomain.com/path/testurl.html#. Was https://w ww.mydomain.com/path/testurl.html. 15 PASS a.href is 'https://www.mydomain.com/path/testurl.html#null'
16 Set hash to empty string 16 Set hash to empty string
17 PASS a.href is 'https://www.mydomain.com/path/testurl.html#' 17 PASS a.href is 'https://www.mydomain.com/path/testurl.html#'
18 Add hash to mailto: protocol 18 Add hash to mailto: protocol
19 FAIL a.href should be mailto:e-mail_address@goes_here#hash-value. Was mailto:e-m ail_address@goes_here. 19 FAIL a.href should be mailto:e-mail_address@goes_here#hash-value. Was mailto:e-m ail_address@goes_here.
20 Add hash to file: protocol 20 Add hash to file: protocol
21 PASS a.href is 'file:///some%20path#hash value' 21 PASS a.href is 'file:///some%20path#hash value'
22 Set hash to '#' 22 Set hash to '#'
23 PASS a.href is 'http://mydomain.com/#' 23 PASS a.href is 'http://mydomain.com/#'
24 Add hash to non-standard protocol 24 Add hash to non-standard protocol
25 FAIL a.href should be foo:bar#hash. Was foo:bar. 25 FAIL a.href should be foo:bar#hash. Was foo:bar.
26 PASS successfullyParsed is true 26 PASS successfullyParsed is true
27 27
28 TEST COMPLETE 28 TEST COMPLETE
29 29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698