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

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

Issue 2554403005: [MD settings] move extra options in category settings (Closed)
Patch Set: merge with master; review changes Created 4 years 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/category_setting_exceptions_tests.js
diff --git a/chrome/test/data/webui/settings/category_setting_exceptions_tests.js b/chrome/test/data/webui/settings/category_setting_exceptions_tests.js
new file mode 100644
index 0000000000000000000000000000000000000000..800e65d5cd7de80bb55d02c0aa4fbc3d8214ebe0
--- /dev/null
+++ b/chrome/test/data/webui/settings/category_setting_exceptions_tests.js
@@ -0,0 +1,42 @@
+// 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.
+
+/** @fileoverview Suite of tests for category-setting-exceptions. */
+cr.define('category_setting_exceptions', function() {
+ function registerTests() {
+ suite('CategorySettingExceptions', function() {
+ /**
+ * A site settings exceptions created before each test.
+ * @type {SiteSettingsExceptionsElement}
+ */
+ var testElement;
+
+ // Import necessary html before running suite.
+ suiteSetup(function() {
+ return PolymerTest.importHtml(
+ 'chrome://md-settings/site_settings/category_setting_exceptions.html'
+ );
+ });
+
+ // Initialize a category-setting-exceptions before each test.
+ setup(function() {
+ browserProxy = new TestSiteSettingsPrefsBrowserProxy();
+ settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy;
+ PolymerTest.clearBody();
+ testElement = document.createElement('category-setting-exceptions');
+ document.body.appendChild(testElement);
+ });
+
+ test('create category-setting-exceptions', function() {
+ // The category-setting-exceptions is mainly a container for site-lists.
+ // There's not much that merits testing.
+ assertTrue(!!testElement);
+ });
+ });
+ }
+
+ return {
+ registerTests: registerTests,
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698