OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 /** | 5 /** |
6 * @type {Array<{key: string, | 6 * @type {Array<{key: string, |
7 * type: chrome.settingsPrivate.PrefType, | 7 * type: chrome.settingsPrivate.PrefType, |
8 * values: !Array<*>}>} | 8 * values: !Array<*>}>} |
9 * Test cases containing preference data. Each pref has three test values, | 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 | 10 * which can be used to change the pref. Intentionally, for a given pref, not |
(...skipping 17 matching lines...) Expand all Loading... |
28 type: chrome.settingsPrivate.PrefType.NUMBER, | 28 type: chrome.settingsPrivate.PrefType.NUMBER, |
29 values: [0, .2, .6], | 29 values: [0, .2, .6], |
30 }, { | 30 }, { |
31 key: 'browser.on.startup.homepage', | 31 key: 'browser.on.startup.homepage', |
32 type: chrome.settingsPrivate.PrefType.STRING, | 32 type: chrome.settingsPrivate.PrefType.STRING, |
33 values: ['example.com', 'chromium.org', 'chrome.example.com'], | 33 values: ['example.com', 'chromium.org', 'chrome.example.com'], |
34 }, { | 34 }, { |
35 key: 'profile.name', | 35 key: 'profile.name', |
36 type: chrome.settingsPrivate.PrefType.STRING, | 36 type: chrome.settingsPrivate.PrefType.STRING, |
37 values: ['Puppy', 'Puppy', 'Horsey'], | 37 values: ['Puppy', 'Puppy', 'Horsey'], |
| 38 }, { |
| 39 key: 'content.sites', |
| 40 type: chrome.settingsPrivate.PrefType.LIST, |
| 41 // Arrays of dictionaries. |
| 42 values: [ |
| 43 [{javascript: ['chromium.org', 'example.com'], |
| 44 cookies: ['example.net'], |
| 45 mic: ['example.com'], |
| 46 flash: []}, |
| 47 {some: 4, |
| 48 other: 8, |
| 49 dictionary: 16}], |
| 50 [{javascript: ['example.com', 'example.net'], |
| 51 cookies: ['example.net', 'example.com'], |
| 52 mic: ['example.com']}, |
| 53 {some: 4, |
| 54 other: 8, |
| 55 dictionary: 16}], |
| 56 [{javascript: ['chromium.org', 'example.com'], |
| 57 cookies: ['chromium.org', 'example.net', 'example.com'], |
| 58 flash: ['localhost'], |
| 59 mic: ['example.com']}, |
| 60 {some: 2.2, |
| 61 dictionary: 4.4}] |
| 62 ], |
38 }]; | 63 }]; |
OLD | NEW |