Home | History | Annotate | Download | only in js-unittest
      1 // Try resolving hostnames containing non-ASCII characters.
      2 
      3 function FindProxyForURL(url, host) {
      4   // This international hostname has a non-ASCII character. It is represented
      5   // in punycode as 'xn--bcher-kva.ch'
      6   var idn = 'B\u00fccher.ch';
      7 
      8   // We disregard the actual return value -- all we care about is that on
      9   // the C++ end the bindings were passed the punycode equivalent of this
     10   // unicode hostname.
     11   dnsResolve(idn);
     12   dnsResolveEx(idn);
     13 
     14   return "DIRECT";
     15 }
     16 
     17