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

Side by Side Diff: chrome/test/data/extensions/api_test/chromeos_info_private/background.js

Issue 10832204: Add board and isOwner properties to chromeosInfoPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « chrome/common/extensions/api/chromeos_info_private.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/chromeos_info_private.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698