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

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

Issue 2617533003: MD Settings: change most checkboxes to toggles (leave dialogs alone) (Closed)
Patch Set: fix tests 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/privacy_page_test.js
diff --git a/chrome/test/data/webui/settings/privacy_page_test.js b/chrome/test/data/webui/settings/privacy_page_test.js
index f16097daf93d0891585bb6c3433bfe454c490c89..5a2f2362a555c4e3e638b3661a80d087aa9ab65e 100644
--- a/chrome/test/data/webui/settings/privacy_page_test.js
+++ b/chrome/test/data/webui/settings/privacy_page_test.js
@@ -260,18 +260,18 @@ cr.define('settings_privacy_page', function() {
'getSafeBrowsingExtendedReporting').then(function() {
Polymer.dom.flush();
- // Checkbox starts checked by default
- var checkbox = page.$.safeBrowsingExtendedReportingCheckbox;
- assertEquals(true, checkbox.checked);
+ // Control starts checked by default
+ var control = page.$.safeBrowsingExtendedReportingControl;
+ assertEquals(true, control.checked);
// Notification from browser can uncheck the box
cr.webUIListenerCallback('safe-browsing-extended-reporting-change',
false);
Polymer.dom.flush();
- assertEquals(false, checkbox.checked);
+ assertEquals(false, control.checked);
// Tapping on the box will check it again.
- MockInteractions.tap(checkbox);
+ MockInteractions.tap(control);
return testBrowserProxy.whenCalled('getSafeBrowsingExtendedReporting',
true);
});
« no previous file with comments | « chrome/test/data/webui/settings/people_page_sync_page_test.js ('k') | chrome/test/data/webui/settings/search_page_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698