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

Side by Side Diff: chrome/test/data/webui/settings/site_details_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', function() { 6 cr.define('site_details', function() {
7 function registerTests() { 7 function registerTests() {
8 suite('SiteDetails', function() { 8 suite('SiteDetails', function() {
9 /** 9 /**
10 * A site list element created before each test. 10 * A site list element created before each test.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { 101 {
102 embeddingOrigin: 'https://foo-allow.com:443', 102 embeddingOrigin: 'https://foo-allow.com:443',
103 origin: 'https://foo-allow.com:443', 103 origin: 'https://foo-allow.com:443',
104 setting: 'allow', 104 setting: 'allow',
105 source: 'preference', 105 source: 'preference',
106 }, 106 },
107 ], 107 ],
108 } 108 }
109 }; 109 };
110 110
111 // Import necessary html before running suite.
112 suiteSetup(function() {
113 return PolymerTest.importHtml(
114 'chrome://md-settings/site_settings/site_details.html'
115 );
116 });
117
118 // Initialize a site-details before each test. 111 // Initialize a site-details before each test.
119 setup(function() { 112 setup(function() {
120 browserProxy = new TestSiteSettingsPrefsBrowserProxy(); 113 browserProxy = new TestSiteSettingsPrefsBrowserProxy();
121 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy; 114 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy;
122 PolymerTest.clearBody(); 115 PolymerTest.clearBody();
123 testElement = document.createElement('site-details'); 116 testElement = document.createElement('site-details');
124 document.body.appendChild(testElement); 117 document.body.appendChild(testElement);
125 }); 118 });
126 119
127 test('empty state', function() { 120 test('empty state', function() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 194
202 //expect usage to be rendered 195 //expect usage to be rendered
203 assertTrue(!!testElement.$$('#usage')); 196 assertTrue(!!testElement.$$('#usage'));
204 }); 197 });
205 }); 198 });
206 } 199 }
207 return { 200 return {
208 registerTests: registerTests, 201 registerTests: registerTests,
209 }; 202 };
210 }); 203 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698