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

Unified Diff: chrome/test/data/webui/settings/prefs_test_cases.js

Issue 1333473002: Support lists in <cr-settings-pref> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PrefsTests
Patch Set: 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
index 3b8cd62b6479745dd6e5fa7eafd845981b9e964b..393ee0f19ebed4fed8f718fd17276087f068d1f2 100644
--- a/chrome/test/data/webui/settings/prefs_test_cases.js
+++ b/chrome/test/data/webui/settings/prefs_test_cases.js
@@ -35,4 +35,29 @@ var prefsTestCases = [{
key: 'profile.name',
type: chrome.settingsPrivate.PrefType.STRING,
values: ['Puppy', 'Puppy', 'Horsey'],
+}, {
+ key: 'content.sites',
+ type: chrome.settingsPrivate.PrefType.LIST,
+ // Arrays of dictionaries.
+ values: [
+ [{javascript: ['chromium.org', 'example.com'],
+ cookies: ['example.net'],
+ mic: ['example.com'],
+ flash: []},
+ {some: 4,
+ other: 8,
+ dictionary: 16}],
+ [{javascript: ['example.com', 'example.net'],
+ cookies: ['example.net', 'example.com'],
+ mic: ['example.com']},
+ {some: 4,
+ other: 8,
+ dictionary: 16}],
+ [{javascript: ['chromium.org', 'example.com'],
+ cookies: ['chromium.org', 'example.net', 'example.com'],
+ flash: ['localhost'],
+ mic: ['example.com']},
+ {some: 2.2,
+ dictionary: 4.4}]
+ ],
}];

Powered by Google App Engine
This is Rietveld 408576698