Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: qunit/tests/url.js

Issue 5919468974768128: Issue 2062 - Preserve trailing question mark when converting URL into string (Closed)
Patch Set: URL.port isn't needed anymore Created Feb. 27, 2015, 11:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/url.js ('K') | « lib/url.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/tests/url.js
===================================================================
--- a/qunit/tests/url.js
+++ b/qunit/tests/url.js
@@ -81,8 +81,9 @@
testPreservedURL("http://example.com/foo", "includes path");
testPreservedURL("http://example.com/?foo=bar", "includes query");
testPreservedURL("http://example.com:8080/", "includes port");
+ testPreservedURL("http://example.com/?", "with empty query string");
testNormalizedURL("http://example.com/#top","http://example.com/", "stripped hash");
- testNormalizedURL("http://user:password@example.com/","http://example.com/", "stripped auth credentials");
+ testNormalizedURL("http://example.com/#top?", "http://example.com/", "stripped hash with trailing question mark");
testNormalizedURL("http://xn--f-1gaa.com/","http://f\u00f6\u00f6.com/", "decoded punycode");
testPreservedURL("about:blank", "about:blank");
testPreservedURL("data:text/plain,foo", "data: URL");
« lib/url.js ('K') | « lib/url.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld