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

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

Issue 2669033008: MD Settings: Remove remaining importHtml() calls from site settings tests. (Closed)
Patch Set: 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 site-details. */ 5 /** @fileoverview Suite of tests for site-details. */
6 cr.define('site_details_permission', function() { 6 cr.define('site_details_permission', function() {
7 function registerTests() { 7 function registerTests() {
8 suite('SiteDetailsPermission', function() { 8 suite('SiteDetailsPermission', function() {
9 /** 9 /**
10 * A site list element created before each test. 10 * A site list element created before each test.
(...skipping 26 matching lines...) Expand all
37 { 37 {
38 embeddingOrigin: '', 38 embeddingOrigin: '',
39 origin: 'https://www.example.com', 39 origin: 'https://www.example.com',
40 setting: 'allow', 40 setting: 'allow',
41 source: 'preference', 41 source: 'preference',
42 }, 42 },
43 ] 43 ]
44 } 44 }
45 }; 45 };
46 46
47 // Import necessary html before running suite.
48 suiteSetup(function() {
49 return PolymerTest.importHtml(
dpapad 2017/02/02 23:57:50 These are not needed anymore, since the parent tes
50 'chrome://md-settings/site_settings/site_details_permission.html'
51 );
52 });
53
54 // Initialize a site-details-permission before each test. 47 // Initialize a site-details-permission before each test.
55 setup(function() { 48 setup(function() {
56 browserProxy = new TestSiteSettingsPrefsBrowserProxy(); 49 browserProxy = new TestSiteSettingsPrefsBrowserProxy();
57 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy; 50 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy;
58 PolymerTest.clearBody(); 51 PolymerTest.clearBody();
59 testElement = document.createElement('site-details-permission'); 52 testElement = document.createElement('site-details-permission');
60 document.body.appendChild(testElement); 53 document.body.appendChild(testElement);
61 }); 54 });
62 55
63 // Tests that the given value is converted to the expected value, for a 56 // Tests that the given value is converted to the expected value, for a
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 }).then(function() { 169 }).then(function() {
177 assertTrue(testElement.$.details.hidden); 170 assertTrue(testElement.$.details.hidden);
178 }); 171 });
179 }); 172 });
180 }); 173 });
181 } 174 }
182 return { 175 return {
183 registerTests: registerTests, 176 registerTests: registerTests,
184 }; 177 };
185 }); 178 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698