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

Unified Diff: chrome/test/data/webui/cr_elements/settings_private_test_constants.js

Issue 2737083002: [MD settings] show icon when slider controlled by something (Closed)
Patch Set: unit tests Created 3 years, 9 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/cr_elements/settings_private_test_constants.js
diff --git a/chrome/test/data/webui/cr_elements/settings_private_test_constants.js b/chrome/test/data/webui/cr_elements/settings_private_test_constants.js
new file mode 100644
index 0000000000000000000000000000000000000000..cb281b1c69b9ae86599c418a660a3b5d3f4ddb01
--- /dev/null
+++ b/chrome/test/data/webui/cr_elements/settings_private_test_constants.js
@@ -0,0 +1,33 @@
+// Copyright 2017 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.
+
+// Define chrome.settingsPrivate enums, normally provided by chrome WebUI.
+// NOTE: These need to be kept in sync with settings_private.idl.
dschuyler 2017/03/08 21:50:12 copied from cr_policy_pref_indicator_tests.js
+
+chrome.settingsPrivate = chrome.settingsPrivate || {};
+
+/** @enum {string} */
+chrome.settingsPrivate.ControlledBy = {
+ DEVICE_POLICY: 'DEVICE_POLICY',
+ USER_POLICY: 'USER_POLICY',
+ OWNER: 'OWNER',
+ PRIMARY_USER: 'PRIMARY_USER',
+ EXTENSION: 'EXTENSION',
+};
+
+/** @enum {string} */
+chrome.settingsPrivate.Enforcement = {
+ ENFORCED: 'ENFORCED',
+ RECOMMENDED: 'RECOMMENDED',
+};
+
+/** @enum {string} */
+chrome.settingsPrivate.PrefType = {
+ BOOLEAN: 'BOOLEAN',
+ NUMBER: 'NUMBER',
+ STRING: 'STRING',
+ URL: 'URL',
+ LIST: 'LIST',
+ DICTIONARY: 'DICTIONARY',
+};

Powered by Google App Engine
This is Rietveld 408576698