Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** @fileoverview Suite of tests for category-setting-exceptions. */ | |
| 6 cr.define('category_setting_exceptions', function() { | |
| 7 function registerTests() { | |
| 8 suite('CategorySettingExceptions', function() { | |
| 9 /** | |
| 10 * A site settings exceptions created before each test. | |
| 11 * @type {SiteSettingsExceptionsElement} | |
| 12 */ | |
| 13 var testElement; | |
|
tommycli
2016/12/15 21:36:38
= null; I've normally seen
dschuyler
2016/12/16 20:39:45
Is there a reason null is better than undefined he
| |
| 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 // Initialize a category-setting-exceptions before each test. | |
| 22 setup(function() { | |
| 23 browserProxy = new TestSiteSettingsPrefsBrowserProxy(); | |
| 24 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy; | |
| 25 PolymerTest.clearBody(); | |
| 26 testElement = document.createElement('category-setting-exceptions'); | |
| 27 document.body.appendChild(testElement); | |
| 28 }); | |
| 29 | |
| 30 test('create category-setting-exceptions', function() { | |
| 31 // The category-setting-exceptions is mainly a container for site-lists. | |
| 32 // There's not much that merits testing. | |
| 33 assertTrue(!!testElement); | |
|
tommycli
2016/12/15 21:36:38
Well if there's legitimately nothing that merits t
dschuyler
2016/12/16 20:39:45
Acknowledged.
| |
| 34 }); | |
| 35 }); | |
| 36 } | |
| 37 | |
| 38 return { | |
| 39 registerTests: registerTests, | |
| 40 }; | |
| 41 }); | |
| OLD | NEW |