OLD | NEW |
(Empty) | |
| 1 Test handling of the searchParams attribute of the URL in HTMLAnchorElement. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Inspect single name-value via searchParams |
| 7 PASS a.searchParams.has('key') is true |
| 8 PASS a.searchParams.get('key') is "value" |
| 9 PASS a.href is "https://www.mydomain.com/path/?key=value" |
| 10 Add name-value pair using searchParams |
| 11 PASS a.searchParams.has('k e y') is true |
| 12 PASS a.searchParams.get('k e y') is "value" |
| 13 PASS a.search is "?k+e+y=value" |
| 14 PASS a.href is "https://www.mydomain.com/path/?k+e+y=value" |
| 15 Update name-value pair using searchParams |
| 16 PASS a.searchParams.has('key') is true |
| 17 PASS a.searchParams.get('key') is "newvalue" |
| 18 PASS a.search is "?key=newvalue" |
| 19 PASS a.href is "https://www.mydomain.com/path/?key=newvalue" |
| 20 Remove name-value pair using searchParams |
| 21 PASS a.searchParams.has('key') is false |
| 22 PASS a.search is "" |
| 23 PASS a.href is "https://www.mydomain.com/path/?" |
| 24 Have searchParams reflect removed name-value pairs |
| 25 PASS searchParams.has('key') is true |
| 26 PASS searchParams.has('key') is false |
| 27 PASS a.href is "https://www.mydomain.com/path/?" |
| 28 PASS successfullyParsed is true |
| 29 |
| 30 TEST COMPLETE |
| 31 |
OLD | NEW |