OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |