diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 19:27:36 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-16 19:27:36 +0000 |
commit | ebc5a8a893f65d36c46996f926425ed30f8f2c48 (patch) | |
tree | 54d9bad7d47b41d5d212df4d49e3a4de35f97cc4 | |
parent | 6a6d4ef83b01c04a90bb129b1d098c2d09142255 (diff) | |
download | chromium_src-ebc5a8a893f65d36c46996f926425ed30f8f2c48.zip chromium_src-ebc5a8a893f65d36c46996f926425ed30f8f2c48.tar.gz chromium_src-ebc5a8a893f65d36c46996f926425ed30f8f2c48.tar.bz2 |
Rebaseline another HTML decomposition test.
The differences reflect KURL and GURL implementation differences.
R=brettw
TEST=none
BUG=27548
Review URL: http://codereview.chromium.org/391077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32071 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed, 56 insertions, 1 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt new file mode 100644 index 0000000..7c0537d --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt @@ -0,0 +1,28 @@ +Test setting the hash attribute of the URL in HTMLAnchorElement. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Hash value does not start with '#' +PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value' +Hash value starts with '#' +PASS a.href is 'file:///path/testurl.html#hash_value' +'?' in hash value +PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value' +'#' in hash value, and illegal characters in hostname +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. +Set hash to null +FAIL a.href should be https://www.mydomain.com/path/testurl.html#. Was https://www.mydomain.com/path/testurl.html. +Set hash to empty string +PASS a.href is 'https://www.mydomain.com/path/testurl.html#' +Add hash to mailto: protocol +FAIL a.href should be mailto:e-mail_address@goes_here#hash-value. Was mailto:e-mail_address@goes_here. +Add hash to file: protocol +FAIL a.href should be file:///some%20path#hash%20value. Was file:///some%20path#hash value. +Set hash to '#' +PASS a.href is 'http://mydomain.com/#' +Add hash to non-standard protocol +FAIL a.href should be foo:bar#hash. Was foo:bar. +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt new file mode 100644 index 0000000..7c0537d --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash-expected.txt @@ -0,0 +1,28 @@ +Test setting the hash attribute of the URL in HTMLAnchorElement. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Hash value does not start with '#' +PASS a.href is 'https://www.mydomain.com:8080/path/testurl.html#hash-value' +Hash value starts with '#' +PASS a.href is 'file:///path/testurl.html#hash_value' +'?' in hash value +PASS a.href is 'http://www.mydomain.com/path/testurl.html#hash?value' +'#' in hash value, and illegal characters in hostname +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. +Set hash to null +FAIL a.href should be https://www.mydomain.com/path/testurl.html#. Was https://www.mydomain.com/path/testurl.html. +Set hash to empty string +PASS a.href is 'https://www.mydomain.com/path/testurl.html#' +Add hash to mailto: protocol +FAIL a.href should be mailto:e-mail_address@goes_here#hash-value. Was mailto:e-mail_address@goes_here. +Add hash to file: protocol +FAIL a.href should be file:///some%20path#hash%20value. Was file:///some%20path#hash value. +Set hash to '#' +PASS a.href is 'http://mydomain.com/#' +Add hash to non-standard protocol +FAIL a.href should be foo:bar#hash. Was foo:bar. +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/webkit/tools/layout_tests/test_expectations.txt b/webkit/tools/layout_tests/test_expectations.txt index 8cd86d7..85d74b3 100644 --- a/webkit/tools/layout_tests/test_expectations.txt +++ b/webkit/tools/layout_tests/test_expectations.txt @@ -3037,7 +3037,6 @@ BUG27418 MAC DEBUG : LayoutTests/transitions/shorthand-border-transitions.html = // WebKit r50784 implemented URL decomposition attributes for HTMLAnchorElement, and // this exposes a bunch of minor differences in our URL parsing/editing implementation, // as well as somethings that might be legitimate bugs. -BUG27548 : LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-hash.html = TEXT BUG27548 : LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host.html = TEXT BUG27548 : LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port.html = TEXT BUG27548 : LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-protocol.html = TEXT |