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

Side by Side Diff: chrome/test/data/webui/settings/category_setting_exceptions_tests.js

Issue 2673563002: MD Settings: Remove unnecessary importHtml() calls in site-settings tests. (Closed)
Patch Set: More Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @fileoverview Suite of tests for category-setting-exceptions. */ 5 /** @fileoverview Suite of tests for category-setting-exceptions. */
6 cr.define('category_setting_exceptions', function() { 6 cr.define('category_setting_exceptions', function() {
7 function registerTests() { 7 function registerTests() {
8 suite('CategorySettingExceptions', function() { 8 suite('CategorySettingExceptions', function() {
9 /** 9 /**
10 * A site settings exceptions created before each test. 10 * A site settings exceptions created before each test.
11 * @type {SiteSettingsExceptionsElement} 11 * @type {SiteSettingsExceptionsElement}
12 */ 12 */
13 var testElement; 13 var testElement;
14 14
15 // Import necessary html before running suite.
16 suiteSetup(function() {
17 return PolymerTest.importHtml(
18 'chrome://md-settings/site_settings/category_setting_exceptions.html'
19 );
20 });
21
22 // Initialize a category-setting-exceptions before each test. 15 // Initialize a category-setting-exceptions before each test.
23 setup(function() { 16 setup(function() {
24 browserProxy = new TestSiteSettingsPrefsBrowserProxy(); 17 browserProxy = new TestSiteSettingsPrefsBrowserProxy();
25 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy; 18 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy;
26 PolymerTest.clearBody(); 19 PolymerTest.clearBody();
27 testElement = document.createElement('category-setting-exceptions'); 20 testElement = document.createElement('category-setting-exceptions');
28 document.body.appendChild(testElement); 21 document.body.appendChild(testElement);
29 }); 22 });
30 23
31 test('create category-setting-exceptions', function() { 24 test('create category-setting-exceptions', function() {
32 // The category-setting-exceptions is mainly a container for site-lists. 25 // The category-setting-exceptions is mainly a container for site-lists.
33 // There's not much that merits testing. 26 // There's not much that merits testing.
34 assertTrue(!!testElement); 27 assertTrue(!!testElement);
35 }); 28 });
36 }); 29 });
37 } 30 }
38 31
39 return { 32 return {
40 registerTests: registerTests, 33 registerTests: registerTests,
41 }; 34 };
42 }); 35 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698