haikuwebkit/LayoutTests/fast/url/idna2008-expected.txt

31 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

IDNA2008 handling in domain name labels.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
The PASS/FAIL results of this test are set to the behavior in IDNA2008.
PASS canonicalize('http://Bücher.de/') is 'http://xn--bcher-kva.de/'
PASS canonicalize('http://faß.de/') is 'http://xn--fa-hia.de/'
PASS canonicalize('http://βόλος.com/') is 'http://xn--nxasmm1c.com/'
PASS canonicalize('http://ශ්‍රී.com/') is 'http://xn--10cl1a0b660p.com/'
PASS canonicalize('http://نامه‌ای.com/') is 'http://xn--mgba3gch31f060k.com/'
FAIL canonicalize('http://♥.net/') should be http://<2F>.net/. Was http://xn--g6h.net/.
FAIL canonicalize('http://͸.net/') should be http://<2F>.net/. Was http://͸.net/.
FAIL canonicalize('http://Ӏ.com/') should be http://<2F>.com/. Was http://Ӏ.com/.
FAIL canonicalize('http://㛼.com/') should be http://<2F>.com/. Was http://㛼.com/.
FAIL canonicalize('http://Ↄ.com/') should be http://<2F>.com/. Was http://Ↄ.com/.
PASS canonicalize('http://look͏out.net/') is 'http://lookout.net/'
PASS canonicalize('http://gOoGle.com/') is 'http://google.com/'
FAIL canonicalize('http://ড়.com/') should be http://ড়.com/. Was http://xn--15b8c.com/.
PASS canonicalize('http://ẞ.com/') is 'http://ss.com/'
PASS canonicalize('http://ẞ.foo.com/') is 'http://ss.foo.com/'
FAIL canonicalize('http://-foo.bar.com/') should be http:///. Was http://-foo.bar.com/.
FAIL canonicalize('http://foo-.bar.com/') should be http:///. Was http://foo-.bar.com/.
FAIL canonicalize('http://ab--cd.com/') should be http:///. Was http://ab--cd.com/.
FAIL canonicalize('http://xn--0.com/') should be http:///. Was http://xn--0.com/.
FAIL canonicalize('http://foò.bar.com/') should be http://foo%CC%80.bar.com/. Was http://xn--fo-3ja.bar.com/.
PASS successfullyParsed is true
TEST COMPLETE