OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 /** |
| 6 * @type {Array<{key: string, |
| 7 * type: chrome.settingsPrivate.PrefType, |
| 8 * values: !Array<*>}>} |
| 9 * Test cases containing preference data. Each pref has three test values, |
| 10 * which can be used to change the pref. Intentionally, for a given pref, not |
| 11 * every test value is different from the one before it; this tests what |
| 12 * happens when stale changes are reported. |
| 13 */ |
| 14 var prefsTestCases = [{ |
| 15 key: 'top_level_pref', |
| 16 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 17 values: [true, false, true], |
| 18 }, { |
| 19 key: 'browser.enable_flash', |
| 20 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 21 values: [false, true, false], |
| 22 }, { |
| 23 key: 'browser.enable_html5', |
| 24 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 25 values: [true, false, false], |
| 26 }, { |
| 27 key: 'device.overclock', |
| 28 type: chrome.settingsPrivate.PrefType.NUMBER, |
| 29 values: [0, .2, .6], |
| 30 }, { |
| 31 key: 'browser.on.startup.homepage', |
| 32 type: chrome.settingsPrivate.PrefType.STRING, |
| 33 values: ['example.com', 'chromium.org', 'chrome.example.com'], |
| 34 }, { |
| 35 key: 'profile.name', |
| 36 type: chrome.settingsPrivate.PrefType.STRING, |
| 37 values: ['Puppy', 'Puppy', 'Horsey'], |
| 38 }]; |
OLD | NEW |