Chromium Code Reviews| 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 |