diff options
Diffstat (limited to 'net/data')
-rwxr-xr-x | net/data/proxy_resolver_v8_unittest/international_domain_names.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/data/proxy_resolver_v8_unittest/international_domain_names.js b/net/data/proxy_resolver_v8_unittest/international_domain_names.js new file mode 100755 index 0000000..546af13 --- /dev/null +++ b/net/data/proxy_resolver_v8_unittest/international_domain_names.js @@ -0,0 +1,16 @@ +// Try resolving hostnames containing non-ASCII characters. + +function FindProxyForURL(url, host) { + // This international hostname has a non-ASCII character. It is represented + // in punycode as 'xn--bcher-kva.ch' + var idn = 'B\u00fccher.ch'; + + // We disregard the actual return value -- all we care about is that on + // the C++ end the bindings were passed the punycode equivalent of this + // unicode hostname. + dnsResolve(idn); + dnsResolveEx(idn); + + return "DIRECT"; +} + |