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

Unified Diff: chrome/test/data/webui/settings/system_page_tests.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
« no previous file with comments | « chrome/test/data/webui/settings/search_page_test.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/system_page_tests.js
diff --git a/chrome/test/data/webui/settings/system_page_tests.js b/chrome/test/data/webui/settings/system_page_tests.js
index a9f2e219961abcc37e3373512f938c8bee38ebb9..7de7af1e8a75be267b218cad7c0c703ad08c74ae 100644
--- a/chrome/test/data/webui/settings/system_page_tests.js
+++ b/chrome/test/data/webui/settings/system_page_tests.js
@@ -66,18 +66,18 @@ cr.define('settings_system_page', function() {
teardown(function() { systemPage.remove(); });
test('restart button', function() {
- var checkbox = systemPage.$$('#hardware-acceleration settings-checkbox');
- expectEquals(checkbox.checked, HARDWARE_ACCELERATION_AT_STARTUP);
+ var control = systemPage.$.hardwareAcceleration;
+ expectEquals(control.checked, HARDWARE_ACCELERATION_AT_STARTUP);
// Restart button should be hidden by default.
- expectFalse(!!systemPage.$$('#hardware-acceleration paper-button'));
+ expectFalse(!!control.querySelector('paper-button'));
systemPage.set('prefs.hardware_acceleration_mode.enabled.value',
!HARDWARE_ACCELERATION_AT_STARTUP);
Polymer.dom.flush();
- expectNotEquals(checkbox.checked, HARDWARE_ACCELERATION_AT_STARTUP);
+ expectNotEquals(control.checked, HARDWARE_ACCELERATION_AT_STARTUP);
- var restart = systemPage.$$('#hardware-acceleration paper-button');
+ var restart = control.querySelector('paper-button');
expectTrue(!!restart); // The "RESTART" button should be showing now.
MockInteractions.tap(restart);
« no previous file with comments | « chrome/test/data/webui/settings/search_page_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698