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'], |
+}]; |