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

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

Issue 2862463002: [MD settings] split up site settings tests (Closed)
Patch Set: mocha grep Created 3 years, 7 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/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
index 97ddefbfb20fa2a70a5a87c8e9e48e29b4df3c26..6cd0bb2e507eeb4b7e66ebbef5bc2d32667acf66 100644
--- a/chrome/test/data/webui/settings/category_setting_exceptions_tests.js
+++ b/chrome/test/data/webui/settings/category_setting_exceptions_tests.js
@@ -3,33 +3,25 @@
// 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;
+suite('CategorySettingExceptions', function() {
+ /**
+ * A site settings exceptions created before each test.
+ * @type {SiteSettingsExceptionsElement}
+ */
+ var testElement;
- // 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);
- });
+ // 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,
- };
+ 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);
+ });
});

Powered by Google App Engine
This is Rietveld 408576698