Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / net / data / proxy_resolver_v8_unittest / terminate.js
blob08d928919076f9f9b9203a690548d89cb14696f5
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function FindProxyForURL(url, host) {
6 if (host != 'hang')
7 return 'PROXY ' + host + ':88';
9 var ip = dnsResolve("host1");
11 // The following may or may not be executed, even if dnsResolve() terminates
12 // the script execution.
13 dnsResolveEx("host2");
14 dnsResolveEx("host3");
15 alert("hahaha");
17 // Hang!
18 for (;;) {}
20 // The following definitely won't be executed, since control should never
21 // make it past the preceding hang.
22 dnsResolve("host4");
23 dnsResolve("host5");
24 alert("uhm...");
25 throw "not reached";