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

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

Issue 2421653002: Remove unnecessary, left over Polymer.dom.flush() from appearance tests (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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 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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698