1 Test URLs that have an anchor. 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/#hello, world') is 'http://www.example.com/#hello, world' 7 FAIL canonicalize('http://www.example.com/#') should be http://www.example.com/#. Was http://www.example.com/#%C2%A9. 8 FAIL canonicalize('http://www.example.com/#ss') should be http://www.example.com/#ss. Was http://www.example.com/#%26%2366304%3Bss. 9 PASS canonicalize('http://www.example.com/#%41%a') is 'http://www.example.com/#%41%a' 10 FAIL canonicalize('http://www.example.com/#\ud800\u597d') should be http://www.example.com/#. Was http://www.example.com/#%26%2355296%3B%26%2322909%3B. 11 FAIL canonicalize('http://www.example.com/#a\uFDD0') should be http://www.example.com/#a. Was http://www.example.com/#a%26%2364976%3B. 12 PASS canonicalize('http://www.example.com/#asdf#qwer') is 'http://www.example.com/#asdf#qwer' 13 PASS canonicalize('http://www.example.com/##asdf') is 'http://www.example.com/##asdf' 14 PASS canonicalize('http://www.example.com/#a\nb\rc\td') is 'http://www.example.com/#abcd' 15 PASS successfullyParsed is true 16 17 TEST COMPLETE 18 19