1 Test URLs that have a query string. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 PASS canonicalize('http://www.example.com/?foo=bar') is 'http://www.example.com/?foo=bar' 7 PASS canonicalize('http://www.example.com/?as?df') is 'http://www.example.com/?as?df' 8 PASS canonicalize('http://www.example.com/?\x02hello bye') is 'http://www.example.com/?%02hello%7F%20bye' 9 PASS canonicalize('http://www.example.com/?%40%41123') is 'http://www.example.com/?%40%41123' 10 PASS canonicalize('http://www.example.com/?q=') is 'http://www.example.com/?q=%26%2320320%3B%26%2322909%3B' 11 PASS canonicalize('http://www.example.com/?q=\ud800\ud800') is 'http://www.example.com/?q=%26%2355296%3B%26%2355296%3B' 12 PASS canonicalize('http://www.example.com/?q=<asdf>') is 'http://www.example.com/?q=%3Casdf%3E' 13 PASS canonicalize('http://www.example.com/?q="asdf"') is 'http://www.example.com/?q=%22asdf%22' 14 PASS successfullyParsed is true 15 16 TEST COMPLETE 17 18