1 // Copyright (c) 2011 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.
6 // browser_tests.exe --gtest_filter=ProxySettingsApiTest.ProxyEventsParseError
9 error
: "net::ERR_PAC_SCRIPT_FAILED",
10 details
: "line: 1: Uncaught SyntaxError: Unexpected token !",
15 // Install error handler and get the test server config.
16 chrome
.proxy
.onProxyError
.addListener(function (error
) {
17 chrome
.test
.assertEq(expected_error
, error
);
18 chrome
.test
.notifyPass();
21 // Set an invalid PAC script. This should trigger a proxy errors.
25 data
: "trash!-FindProxyForURL",
29 chrome
.proxy
.settings
.set({'value': config
}, testDone
);
33 // Do nothing. The test success/failure is decided in the event handler.