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

Side by Side Diff: chrome/test/data/webui/settings/prefs_test_cases.js

Issue 1310843010: Add Polymer tests for cr-settings-prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new changes Created 5 years, 3 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
OLDNEW
(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<Object>}
Dan Beam 2015/09/15 01:37:18 Object -> {key: string, type: chrome.settingsPriva
michaelpg 2015/09/15 02:20:53 Done.
7 * Test cases containing preference data with three possible values per pref.
Dan Beam 2015/09/15 01:37:18 can you expand on what values means?
michaelpg 2015/09/15 02:20:53 Done.
8 */
9 var prefsTestCases = [{
10 key: 'top_level_pref',
11 type: chrome.settingsPrivate.PrefType.BOOLEAN,
12 values: [true, false, true],
13 }, {
14 key: 'browser.enable_flash',
15 type: chrome.settingsPrivate.PrefType.BOOLEAN,
16 values: [false, true, false],
17 }, {
18 key: 'browser.enable_html5',
19 type: chrome.settingsPrivate.PrefType.BOOLEAN,
20 values: [true, false, false],
21 }, {
22 key: 'device.overclock',
23 type: chrome.settingsPrivate.PrefType.NUMBER,
24 values: [0, .2, .6],
25 }, {
26 key: 'browser.on.startup.homepage',
27 type: chrome.settingsPrivate.PrefType.STRING,
28 values: ['example.com', 'chromium.org', 'chrome.example.com'],
29 }];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698