| OLD | NEW |
| 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 Runs polymer appearance font settings elements. */ | 5 /** @fileoverview Runs polymer appearance font settings elements. */ |
| 6 | 6 |
| 7 cr.define('settings_appearance', function() { | 7 cr.define('settings_appearance', function() { |
| 8 /** | 8 /** |
| 9 * A test version of AppearanceBrowserProxy. | 9 * A test version of AppearanceBrowserProxy. |
| 10 * | 10 * |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 test('useDefaultTheme', function() { | 137 test('useDefaultTheme', function() { |
| 138 var button = appearancePage.$$('#useDefault'); | 138 var button = appearancePage.$$('#useDefault'); |
| 139 assertTrue(!!button); | 139 assertTrue(!!button); |
| 140 MockInteractions.tap(button); | 140 MockInteractions.tap(button); |
| 141 return appearanceBrowserProxy.whenCalled('useDefaultTheme'); | 141 return appearanceBrowserProxy.whenCalled('useDefaultTheme'); |
| 142 }); | 142 }); |
| 143 | 143 |
| 144 if (cr.isLinux && !cr.isChromeOS) { | 144 if (cr.isLinux && !cr.isChromeOS) { |
| 145 test('useSystemTheme', function() { | 145 test('useSystemTheme', function() { |
| 146 Polymer.dom.flush(); | |
| 147 | |
| 148 var button = appearancePage.$$('#useSystem'); | 146 var button = appearancePage.$$('#useSystem'); |
| 149 assertTrue(!!button); | 147 assertTrue(!!button); |
| 150 MockInteractions.tap(button); | 148 MockInteractions.tap(button); |
| 151 return appearanceBrowserProxy.whenCalled('useSystemTheme'); | 149 return appearanceBrowserProxy.whenCalled('useSystemTheme'); |
| 152 }); | 150 }); |
| 153 } | 151 } |
| 154 }); | 152 }); |
| 155 } | 153 } |
| 156 | 154 |
| 157 function registerAppearanceFontSettingsBrowserTest() { | 155 function registerAppearanceFontSettingsBrowserTest() { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 188 }); | 186 }); |
| 189 } | 187 } |
| 190 | 188 |
| 191 return { | 189 return { |
| 192 registerTests: function() { | 190 registerTests: function() { |
| 193 registerAppearanceFontSettingsBrowserTest(); | 191 registerAppearanceFontSettingsBrowserTest(); |
| 194 registerAppearanceSettingsBrowserTest(); | 192 registerAppearanceSettingsBrowserTest(); |
| 195 }, | 193 }, |
| 196 }; | 194 }; |
| 197 }); | 195 }); |
| OLD | NEW |