• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test URLs that have an anchor.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6PASS canonicalize('http://www.example.com/#hello, world') is 'http://www.example.com/#hello, world'
7FAIL canonicalize('http://www.example.com/#©') should be http://www.example.com/#©. Was http://www.example.com/#%C2%A9.
8FAIL canonicalize('http://www.example.com/#��ss') should be http://www.example.com/#��ss. Was http://www.example.com/#%26%2366304%3Bss.
9PASS canonicalize('http://www.example.com/#%41%a') is 'http://www.example.com/#%41%a'
10FAIL canonicalize('http://www.example.com/#\ud800\u597d') should be http://www.example.com/#�好. Was http://www.example.com/#%26%2355296%3B%26%2322909%3B.
11FAIL canonicalize('http://www.example.com/#a\uFDD0') should be http://www.example.com/#a﷐. Was http://www.example.com/#a%26%2364976%3B.
12PASS canonicalize('http://www.example.com/#asdf#qwer') is 'http://www.example.com/#asdf#qwer'
13PASS canonicalize('http://www.example.com/##asdf') is 'http://www.example.com/##asdf'
14PASS canonicalize('http://www.example.com/#a\nb\rc\td') is 'http://www.example.com/#abcd'
15PASS successfullyParsed is true
16
17TEST COMPLETE
18
19