Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1702)

Side by Side Diff: net/data/proxy_resolver_v8_unittest/terminate.js

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 function FindProxyForURL(url, host) {
6 if (host != 'hang')
7 return 'PROXY ' + host + ':88';
8
9 var ip = dnsResolve("host1");
10
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");
16
17 // Hang!
18 for (;;) {}
19
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";
26 }
OLDNEW
« no previous file with comments | « net/data/proxy_resolver_v8_unittest/simple.js ('k') | net/data/proxy_resolver_v8_unittest/unhandled_exception.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698