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

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

Issue 2816883002: MD Settings: compose a <paper-radio-button> instead of wrapping one in <controlled-radio-button> (Closed)
Patch Set: fix tests Created 3 years, 8 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
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/controlled_radio_button_tests.js
diff --git a/chrome/test/data/webui/settings/controlled_radio_button_tests.js b/chrome/test/data/webui/settings/controlled_radio_button_tests.js
index b19962e6f7d0db7dd49e9a4b6c2261d9296a0192..12290a758dad302fa5b69eee0844d16b6758f71b 100644
--- a/chrome/test/data/webui/settings/controlled_radio_button_tests.js
+++ b/chrome/test/data/webui/settings/controlled_radio_button_tests.js
@@ -24,7 +24,8 @@ suite('controlled radio button', function() {
radioButton.set('pref.enforcement',
chrome.settingsPrivate.Enforcement.ENFORCED);
Polymer.dom.flush();
- assertTrue(radioButton.$$('paper-radio-button').disabled);
+ // TODO(dbeam): rewrite this not to test private state (controlled_).
+ assertTrue(radioButton.controlled_);
assertFalse(!!radioButton.$$('cr-policy-pref-indicator'));
radioButton.set('name', 'true');
@@ -33,7 +34,7 @@ suite('controlled radio button', function() {
radioButton.set('pref.enforcement', undefined);
Polymer.dom.flush();
- assertFalse(radioButton.$$('paper-radio-button').disabled);
+ assertFalse(radioButton.controlled_);
assertEquals('none',
radioButton.$$('cr-policy-pref-indicator').style.display);
});
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698