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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt b/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt
index 882b08ada7b16fc4820305d52541890f1fe082c4..e2279319754f5644e076a952cdce3e6b8d00aaf3 100644
--- a/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt
+++ b/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-host-expected.txt
@@ -5,12 +5,16 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
Basic test
PASS a.href is 'https://www.otherdomain.com:0/path/'
+Set host without port
+PASS a.href is 'https://www.otherdomain.com:8080/path/'
Set host with '?' in it
FAIL a.href should be https://www.other/?domain.com:8080/path/?key=value. Was https://www.other%3Fdomain.com:8080/path/?key=value.
Set default port for another protocol
PASS a.href is 'https://www.otherdomain.com:80/path/'
Set default port
PASS a.href is 'https://www.otherdomain.com/path/'
+Set host with invalid port
+PASS a.href is 'https://www.otherdomain.com:0/path/'
Set host with letters in port number
PASS a.href is 'https://www.otherdomain.com:44/path/'
Leading space in port number
@@ -18,13 +22,13 @@ PASS a.href is 'https://www.otherdomain.com:0/path/'
Colon without port number
PASS a.href is 'https://www.otherdomain.com:0/path/'
Set host to null
-FAIL a.href should be https://null:8080/path/. Was https://null/path/.
+PASS a.href is 'https://null:8080/path/'
Set host to empty string
PASS a.href is 'https://www.mydomain.com:8080/path/'
Set host to URL with file: protocol
PASS a.href is 'file://mydomain.com/path/'
Set host containing slashes in it
-FAIL a.href should be https://www.otherdom/ain.com/path/. Was https://www.otherdom%2Fain.com/path/.
+PASS a.href is 'https://www.otherdom%2Fain.com:8080/path/'
Set host to a malformed URL
FAIL a.href should be https:/
ww.my@domain.com:8080/path/. Was https://ww.my@www.other%21domain.com:15/path/.
« 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