| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 {some: 4, | 53 {some: 4, |
| 54 other: 8, | 54 other: 8, |
| 55 dictionary: 16}], | 55 dictionary: 16}], |
| 56 [{javascript: ['chromium.org', 'example.com'], | 56 [{javascript: ['chromium.org', 'example.com'], |
| 57 cookies: ['chromium.org', 'example.net', 'example.com'], | 57 cookies: ['chromium.org', 'example.net', 'example.com'], |
| 58 flash: ['localhost'], | 58 flash: ['localhost'], |
| 59 mic: ['example.com']}, | 59 mic: ['example.com']}, |
| 60 {some: 2.2, | 60 {some: 2.2, |
| 61 dictionary: 4.4}] | 61 dictionary: 4.4}] |
| 62 ], | 62 ], |
| 63 }, { |
| 64 key: 'content_settings.exceptions.notifications', |
| 65 type: chrome.settingsPrivate.PrefType.DICTIONARY, |
| 66 values: [{ |
| 67 'https:\/\/foo.com,*': { |
| 68 last_used: 1442486000.4000, |
| 69 'setting': 0, |
| 70 }, |
| 71 'https:\/\/bar.com,*': { |
| 72 'last_used': 1442487000.3000, |
| 73 'setting': 1, |
| 74 }, |
| 75 'https:\/\/baz.com,*': { |
| 76 'last_used': 1442482000.8000, |
| 77 'setting': 2, |
| 78 }, |
| 79 }, { |
| 80 'https:\/\/foo.com,*': { |
| 81 last_used: 1442486000.4000, |
| 82 'setting': 0, |
| 83 }, |
| 84 'https:\/\/example.com,*': { |
| 85 'last_used': 1442489000.1000, |
| 86 'setting': 2, |
| 87 }, |
| 88 'https:\/\/baz.com,*': { |
| 89 'last_used': 1442484000.9000, |
| 90 'setting': 1, |
| 91 }, |
| 92 }, { |
| 93 'https:\/\/foo.com,*': { |
| 94 last_used: 1442488000.8000, |
| 95 'setting': 1, |
| 96 }, |
| 97 'https:\/\/example.com,*': { |
| 98 'last_used': 1442489000.1000, |
| 99 'setting': 2, |
| 100 }, |
| 101 }], |
| 63 }]; | 102 }]; |
| OLD | NEW |