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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/prefs_test_cases.js
diff --git a/chrome/test/data/webui/settings/prefs_test_cases.js b/chrome/test/data/webui/settings/prefs_test_cases.js
new file mode 100644
index 0000000000000000000000000000000000000000..a656ffd7d10e0d462ae4292a1afbbcd7d36d3a4c
--- /dev/null
+++ b/chrome/test/data/webui/settings/prefs_test_cases.js
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @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.
+ * 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.
+ */
+var prefsTestCases = [{
+ key: 'top_level_pref',
+ type: chrome.settingsPrivate.PrefType.BOOLEAN,
+ values: [true, false, true],
+}, {
+ key: 'browser.enable_flash',
+ type: chrome.settingsPrivate.PrefType.BOOLEAN,
+ values: [false, true, false],
+}, {
+ key: 'browser.enable_html5',
+ type: chrome.settingsPrivate.PrefType.BOOLEAN,
+ values: [true, false, false],
+}, {
+ key: 'device.overclock',
+ type: chrome.settingsPrivate.PrefType.NUMBER,
+ values: [0, .2, .6],
+}, {
+ key: 'browser.on.startup.homepage',
+ type: chrome.settingsPrivate.PrefType.STRING,
+ values: ['example.com', 'chromium.org', 'chrome.example.com'],
+}];

Powered by Google App Engine
This is Rietveld 408576698