1 Tests mailto: URL canonicalization
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS canonicalize('mailto:addr1') is 'mailto:addr1'
7 PASS canonicalize('mailto:addr1@foo.com') is 'mailto:addr1@foo.com'
8 PASS canonicalize('mailto:addr1 ') is 'mailto:addr1'
9 PASS canonicalize('mailto:addr1?to=jon') is 'mailto:addr1?to=jon'
10 PASS canonicalize('mailto:addr1,addr2') is 'mailto:addr1,addr2'
11 PASS canonicalize('mailto:addr1, addr2') is 'mailto:addr1, addr2'
12 PASS canonicalize('mailto:addr1%2caddr2') is 'mailto:addr1%2caddr2'
13 PASS canonicalize('mailto:𐌀') is 'mailto:%F0%90%8C%80'
14 PASS canonicalize('mailto:addr1?') is 'mailto:addr1?'
15 PASS canonicalize('mailto:í ') == 'mailto:%EF%BF%BD' is false
16 PASS successfullyParsed is true