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

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

Issue 2512323002: MD Settings: In /syncSetup clicking links in checkbox label should not check/uncheck. (Closed)
Patch Set: add @private annotation to sync page function Created 4 years, 1 month 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/people_page/sync_page.js ('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/people_page_sync_page_test.js
diff --git a/chrome/test/data/webui/settings/people_page_sync_page_test.js b/chrome/test/data/webui/settings/people_page_sync_page_test.js
index e39cc91fc850988250e4a6feb183aad3f46a83be..b174b14908b00db27f2515906117f3bb7c242587 100644
--- a/chrome/test/data/webui/settings/people_page_sync_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_sync_page_test.js
@@ -240,6 +240,24 @@ cr.define('settings_people_page_sync_page', function() {
return browserProxy.whenCalled('setSyncDatatypes').then(verifyPrefs);
});
+ test('ClickingLinkDoesNotChangeCheckboxValue', function() {
+ var syncAllDataTypesCheckbox = syncPage.$.syncAllDataTypesCheckbox;
+
+ // Uncheck the Sync All checkbox.
+ MockInteractions.tap(syncAllDataTypesCheckbox);
+
+ // Make sure the checkbox is enabled and checked.
+ var link = syncPage.$.paymentLearnMore;
+ assertEquals('PAPER-CHECKBOX', link.parentNode.nodeName);
+ assertFalse(link.parentNode.disabled);
+ assertTrue(link.parentNode.checked);
+
+ MockInteractions.tap(link);
+
+ // The checkbox value should be unchanged after clicking on the link.
+ assertTrue(link.parentNode.checked);
+ });
+
test('RadioBoxesEnabledWhenUnencrypted', function() {
// Verify that the encryption radio boxes are enabled.
assertFalse(encryptWithGoogle.disabled);
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698