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

Unified Diff: chrome/test/data/webui/settings/settings_main_test.js

Issue 2660383002: [MD settings] idle load basic and advanced pages (Closed)
Patch Set: added unit test Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/settings_main_test.js
diff --git a/chrome/test/data/webui/settings/settings_main_test.js b/chrome/test/data/webui/settings/settings_main_test.js
index dc2715111a1ee04541e1ce9ab69edf025dc16151..0e02be927ba144a1da2868a261f40a9dec5f15c9 100644
--- a/chrome/test/data/webui/settings/settings_main_test.js
+++ b/chrome/test/data/webui/settings/settings_main_test.js
@@ -176,7 +176,7 @@ cr.define('settings_main_page', function() {
assertEquals(
expectedBasic, page.$$('#basicPage').style.display);
assertEquals(
- expectedAdvanced, page.$$('#advancedPage').style.display);
+ expectedAdvanced, page.$.advancedPageTemplate.get().style.display);
michaelpg 2017/02/01 07:53:50 This is confusing: asserting visibility has a side
dpapad 2017/02/01 18:10:37 Good catch! We should be querying the DOM directly
dschuyler 2017/02/01 21:52:31 I can see where using templates for dom-if would m
dschuyler 2017/02/01 21:52:31 The .get only expands the idle render template. Wh
michaelpg 2017/02/02 00:00:35 The existing function assumes <div id="advancedPag
dschuyler 2017/02/02 02:28:15 I agree that if that test were desired it should b
}
// TODO(michaelpg): It would be better not to drill into

Powered by Google App Engine
This is Rietveld 408576698