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

Side by Side Diff: chrome/test/data/webui/settings/zoom_levels_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
« no previous file with comments | « chrome/test/data/webui/settings/usb_devices_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 zoom-levels. */ 5 /** @fileoverview Suite of tests for zoom-levels. */
6 cr.define('zoom_levels', function() { 6 cr.define('zoom_levels', function() {
7 function registerTests() { 7 function registerTests() {
8 suite('ZoomLevels', function() { 8 suite('ZoomLevels', function() {
9 /** 9 /**
10 * A zoom levels category created before each test. 10 * A zoom levels category created before each test.
(...skipping 23 matching lines...) Expand all
34 { 34 {
35 origin: 'http://www.chromium.org', 35 origin: 'http://www.chromium.org',
36 displayName: 'http://www.chromium.org', 36 displayName: 'http://www.chromium.org',
37 originForFavicon: 'http://www.chromium.org', 37 originForFavicon: 'http://www.chromium.org',
38 setting: '', 38 setting: '',
39 source: '', 39 source: '',
40 zoom: '125%', 40 zoom: '125%',
41 }, 41 },
42 ]; 42 ];
43 43
44 // Import necessary html before running suite.
45 suiteSetup(function() {
46 return PolymerTest.importHtml(
47 'chrome://md-settings/site_settings/zoom_levels.html');
48 });
49
50 setup(function() { 44 setup(function() {
51 browserProxy = new TestSiteSettingsPrefsBrowserProxy(); 45 browserProxy = new TestSiteSettingsPrefsBrowserProxy();
52 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy; 46 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = browserProxy;
53 return initPage(); 47 return initPage();
54 }); 48 });
55 49
56 teardown(function() { 50 teardown(function() {
57 testElement.remove(); 51 testElement.remove();
58 testElement = null; 52 testElement = null;
59 }); 53 });
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 assertEquals("http://www.google.com", args[0]); 94 assertEquals("http://www.google.com", args[0]);
101 }); 95 });
102 }); 96 });
103 }); 97 });
104 } 98 }
105 99
106 return { 100 return {
107 registerTests: registerTests, 101 registerTests: registerTests,
108 }; 102 };
109 }); 103 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/usb_devices_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698