diff options
Diffstat (limited to 'webkit')
5 files changed, 92 insertions, 2 deletions
diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt new file mode 100644 index 0000000..5c03d7b --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt @@ -0,0 +1,24 @@ +Test setting the port attribute of the URL in HTMLAnchorElement. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Default port as number +PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value' +Default port as string +PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value' +Set port to 0 +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to non-number +PASS a.href is 'https://www.mydomain.com:4/path/testurl.html?key=value' +Set port to null +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to empty string +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to undefined +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to URL with foo: protocol +PASS a.href is 'foo://bar:50/' +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt new file mode 100644 index 0000000..b74641f --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-mac/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt @@ -0,0 +1,22 @@ +Test setting the search attribute of the URL in HTMLAnchorElement . + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Set search without '?' +PASS a.href is 'https://www.mydomain.com/path/?value=key' +Set search that starts with '?' and contains spaces +PASS a.href is 'https://www.mydomain.com/path/?val%20ue=%20key?' +Set search to a malformed URL +FAIL a.href should be s:www.mydomain.com/path/?%. Was s:www.mydomain.com/path/. +Set search containing '#' +PASS a.href is 'https://www.mydomain.com/path/?value%23key#hash' +Set search to a malformed URL +FAIL a.href should be bad:/|/url?value=key. Was bad:/|/url. +Set search to null +PASS a.href is 'https://www.mydomain.com/path/' +Set search to empty string +PASS a.href is 'https://www.mydomain.com/path/?' +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt new file mode 100644 index 0000000..5c03d7b --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-port-expected.txt @@ -0,0 +1,24 @@ +Test setting the port attribute of the URL in HTMLAnchorElement. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Default port as number +PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value' +Default port as string +PASS a.href is 'https://www.mydomain.com/path/testurl.html?key=value' +Set port to 0 +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to non-number +PASS a.href is 'https://www.mydomain.com:4/path/testurl.html?key=value' +Set port to null +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to empty string +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to undefined +FAIL a.href should be https://www.mydomain.com:0/path/testurl.html?key=value. Was https://www.mydomain.com/path/testurl.html?key=value. +Set port to URL with foo: protocol +PASS a.href is 'foo://bar:50/' +PASS successfullyParsed is true + +TEST COMPLETE diff --git a/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt new file mode 100644 index 0000000..bf0f496 --- /dev/null +++ b/webkit/data/layout_tests/platform/chromium-win/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search-expected.txt @@ -0,0 +1,22 @@ +Test setting the search attribute of the URL in HTMLAnchorElement . + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Set search without '?' +PASS a.href is 'https://www.mydomain.com/path/?value=key' +Set search that starts with '?' and contains spaces +PASS a.href is 'https://www.mydomain.com/path/?val%20ue=%20key?' +Set search to a malformed URL +FAIL a.href should be s:www.mydomain.com/path/?%. Was file:///S:/www.mydomain.com/path/?%. +Set search containing '#' +PASS a.href is 'https://www.mydomain.com/path/?value%23key#hash' +Set search to a malformed URL +FAIL a.href should be bad:/|/url?value=key. Was bad:/|/url. +Set search to null +PASS a.href is 'https://www.mydomain.com/path/' +Set search to empty string +PASS a.href is 'https://www.mydomain.com/path/?' +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 a4673e6..610d770 100644 --- a/webkit/tools/layout_tests/test_expectations.txt +++ b/webkit/tools/layout_tests/test_expectations.txt @@ -3034,9 +3034,7 @@ BUG27418 MAC DEBUG : LayoutTests/transitions/shorthand-border-transitions.html = // 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-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 -BUG27548 : LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-search.html = TEXT // New tests and regressions related to WebKit r50760 (appeared in WebKit merge 50756:50820). BUG27551 WIN DEBUG : LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer.html = TEXT CRASH |