| 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://�.net/. Was http://xn--g6h.net/. |
| FAIL canonicalize('http://.net/') should be http://�.net/. Was http://.net/. |
| FAIL canonicalize('http://Ӏ.com/') should be http://�.com/. Was http://Ӏ.com/. |
| FAIL canonicalize('http://㛼.com/') should be http://�.com/. Was http://㛼.com/. |
| FAIL canonicalize('http://Ↄ.com/') should be http://�.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 |
| |