19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
Test URLs that have an anchor.
|
||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
||
|
||
|
||
PASS canonicalize('http://www.example.com/#hello, world') is 'http://www.example.com/#hello,%20world'
|
||
FAIL canonicalize('http://www.example.com/#©') should be http://www.example.com/#©. Was http://www.example.com/#%C3%82%C2%A9.
|
||
FAIL canonicalize('http://www.example.com/#𐌀ss') should be http://www.example.com/#𐌀ss. Was http://www.example.com/#%F0%90%8C%80ss.
|
||
PASS canonicalize('http://www.example.com/#%41%a') is 'http://www.example.com/#%41%a'
|
||
FAIL canonicalize('http://www.example.com/#\ud800\u597d') should be http://www.example.com/#<23>好. Was http://www.example.com/#%EF%BF%BD%E5%A5%BD.
|
||
PASS canonicalize('http://www.example.com/#a\uFDD0') is 'http://www.example.com/#a%EF%B7%90'
|
||
PASS canonicalize('http://www.example.com/#asdf#qwer') is 'http://www.example.com/#asdf#qwer'
|
||
PASS canonicalize('http://www.example.com/##asdf') is 'http://www.example.com/##asdf'
|
||
PASS canonicalize('http://www.example.com/#a\nb\rc\td') is 'http://www.example.com/#abcd'
|
||
PASS successfullyParsed is true
|
||
|
||
TEST COMPLETE
|
||
|