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

Unified Diff: LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-searchParams-expected.txt

Issue 143313002: Implement URLSearchParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More tests + ref count unattached URLSearchParams objects Created 6 years, 11 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-searchParams-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-searchParams-expected.txt b/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-searchParams-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fce602491f8d5834d17b7f940cdb29510bac9955
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLAnchorElement/set-href-attribute-searchParams-expected.txt
@@ -0,0 +1,31 @@
+Test handling of the searchParams attribute of the URL in HTMLAnchorElement.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Inspect single name-value via searchParams
+PASS a.searchParams.has('key') is true
+PASS a.searchParams.get('key') is "value"
+PASS a.href is "https://www.mydomain.com/path/?key=value"
+Add name-value pair using searchParams
+PASS a.searchParams.has('k e y') is true
+PASS a.searchParams.get('k e y') is "value"
+PASS a.search is "?k+e+y=value"
+PASS a.href is "https://www.mydomain.com/path/?k+e+y=value"
+Update name-value pair using searchParams
+PASS a.searchParams.has('key') is true
+PASS a.searchParams.get('key') is "newvalue"
+PASS a.search is "?key=newvalue"
+PASS a.href is "https://www.mydomain.com/path/?key=newvalue"
+Remove name-value pair using searchParams
+PASS a.searchParams.has('key') is false
+PASS a.search is ""
+PASS a.href is "https://www.mydomain.com/path/?"
+Have searchParams reflect removed name-value pairs
+PASS searchParams.has('key') is true
+PASS searchParams.has('key') is false
+PASS a.href is "https://www.mydomain.com/path/?"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698