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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } | 49 } |
50 } | 50 } |
51 if (keys.length >= 2) { | 51 if (keys.length >= 2) { |
52 tests.push(getTestFunctionFor([keys[0], keys[1]], [])); | 52 tests.push(getTestFunctionFor([keys[0], keys[1]], [])); |
53 tests.push(getTestFunctionFor([keys[0], noValueKey, keys[1]], | 53 tests.push(getTestFunctionFor([keys[0], noValueKey, keys[1]], |
54 [noValueKey])); | 54 [noValueKey])); |
55 } | 55 } |
56 return tests; | 56 return tests; |
57 } | 57 } |
58 | 58 |
59 var tests = generateTestsForKeys(["hwid", "homeProvider", "initialLocale"]) | 59 var tests = generateTestsForKeys(["hwid", |
| 60 "homeProvider", |
| 61 "initialLocale", |
| 62 "board", |
| 63 "isOwner"]) |
60 chrome.test.runTests(tests); | 64 chrome.test.runTests(tests); |
OLD | NEW |