OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // proxy api test | 5 // proxy api test |
6 // browser_tests.exe --gtest_filter=ProxySettingsApiTest.ProxyPacScript | 6 // browser_tests.exe --gtest_filter=ProxySettingsApiTest.ProxyPacScript |
7 | 7 |
8 chrome.test.runTests([ | 8 chrome.test.runTests([ |
9 // Verify that execution has started to make sure flaky timeouts are not | 9 // Verify that execution has started to make sure flaky timeouts are not |
10 // caused by us. | 10 // caused by us. |
11 function verifyTestsHaveStarted() { | 11 function verifyTestsHaveStarted() { |
12 chrome.test.succeed(); | 12 chrome.test.succeed(); |
13 }, | 13 }, |
14 function setAutoSettings() { | 14 function setAutoSettings() { |
15 var pacScriptObject = { | 15 var pacScriptObject = { |
16 url: "http://wpad/windows.pac" | 16 url: "http://wpad/windows.pac" |
17 }; | 17 }; |
18 var config = { | 18 var config = { |
19 mode: "pac_script", | 19 mode: "pac_script", |
20 pacScript: pacScriptObject | 20 pacScript: pacScriptObject |
21 }; | 21 }; |
22 chrome.experimental.proxy.settings.set( | 22 chrome.proxy.settings.set( |
23 {'value': config}, | 23 {'value': config}, |
24 chrome.test.callbackPass()); | 24 chrome.test.callbackPass()); |
25 } | 25 } |
26 ]); | 26 ]); |
OLD | NEW |