| 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 var pass = chrome.test.callbackPass; | 5 var pass = chrome.test.callbackPass; |
| 6 var fail = chrome.test.callbackFail; | 6 var fail = chrome.test.callbackFail; |
| 7 | 7 |
| 8 function getTestFunctionFor(keys, fails) { | 8 function getTestFunctionFor(keys, fails) { |
| 9 return function generatedTest () { | 9 return function generatedTest () { |
| 10 // Debug. | 10 // Debug. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 )); | 100 )); |
| 101 } | 101 } |
| 102 | 102 |
| 103 // Run generated chrome.chromeosInfoPrivate.get() tests. | 103 // Run generated chrome.chromeosInfoPrivate.get() tests. |
| 104 var tests = generateTestsForKeys(['hwid', | 104 var tests = generateTestsForKeys(['hwid', |
| 105 'customizationId', | 105 'customizationId', |
| 106 'homeProvider', | 106 'homeProvider', |
| 107 'initialLocale', | 107 'initialLocale', |
| 108 'board', | 108 'board', |
| 109 'isOwner', | 109 'isOwner', |
| 110 'clientId', |
| 110 'a11yLargeCursorEnabled', | 111 'a11yLargeCursorEnabled', |
| 111 'a11yStickyKeysEnabled', | 112 'a11yStickyKeysEnabled', |
| 112 'a11ySpokenFeedbackEnabled', | 113 'a11ySpokenFeedbackEnabled', |
| 113 'a11yHighContrastEnabled', | 114 'a11yHighContrastEnabled', |
| 114 'a11yScreenMagnifierEnabled', | 115 'a11yScreenMagnifierEnabled', |
| 115 'a11yAutoClickEnabled', | 116 'a11yAutoClickEnabled', |
| 116 'a11yVirtualKeyboardEnabled', | 117 'a11yVirtualKeyboardEnabled', |
| 117 'sendFunctionKeys', | 118 'sendFunctionKeys', |
| 118 'timezone', | 119 'timezone', |
| 119 'supportedTimezones']) | 120 'supportedTimezones']) |
| 120 | 121 |
| 121 // Add chrome.chromeosInfoPrivate.set() test. | 122 // Add chrome.chromeosInfoPrivate.set() test. |
| 122 tests.push(timezoneSetTest); | 123 tests.push(timezoneSetTest); |
| 123 tests.push(prefsTest); | 124 tests.push(prefsTest); |
| 124 | 125 |
| 125 chrome.test.runTests(tests); | 126 chrome.test.runTests(tests); |
| OLD | NEW |