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

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

Issue 333006: Add three of the six extensions to PAC that Internet Explorer supports. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address more of wtc's comments Created 11 years, 1 month 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 | Annotate | Revision Log
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // This script should be run in an environment where all DNS resolution are
2 // failing. It tests that functions return the expected values.
3 //
4 // Returns "PROXY success:80" on success.
5 function FindProxyForURL(url, host) {
6 try {
7 expectEq("127.0.0.1", myIpAddress());
8 expectEq("", myIpAddressEx());
9
10 expectEq(null, dnsResolve("not-found"));
11 expectEq("", dnsResolveEx("not-found"));
12
13 expectEq(false, isResolvable("not-found"));
14 expectEq(false, isResolvableEx("not-found"));
15
16 return "PROXY success:80";
17 } catch(e) {
18 alert(e);
19 return "PROXY failed:80";
20 }
21 }
22
23 function expectEq(expected, actual) {
24 if (expected != actual)
25 throw "Expected " + expected + " but was " + actual;
26 }
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698