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