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

Unified Diff: chrome/test/data/webui/print_preview.js

Issue 535073005: Convert Print Preview layout and color radio buttons to select elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adapt browser_tests to the controls change. Created 6 years, 3 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/print_preview/settings/layout_settings.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/print_preview.js
diff --git a/chrome/test/data/webui/print_preview.js b/chrome/test/data/webui/print_preview.js
index 72d14104832c47ef4cfa8a868fc53a9cfd639b46..4d0701b41d877b46ebc8430ce52b5a8c5dd9dbab 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -775,8 +775,9 @@ TEST_F('PrintPreviewWebUITest', 'TestColorSettingsBothStandardDefaultColor',
this.nativeLayer_.dispatchEvent(capsSetEvent);
checkSectionVisible($('color-settings'), true);
- expectTrue($('color-settings').querySelector('.color-option').checked);
- expectFalse($('color-settings').querySelector('.bw-option').checked);
+ expectEquals(
+ 'color',
+ $('color-settings').querySelector('.color-settings-select').value);
});
// Test that the color settings, two options, both standard, defaults to
@@ -797,8 +798,8 @@ TEST_F('PrintPreviewWebUITest',
this.nativeLayer_.dispatchEvent(capsSetEvent);
checkSectionVisible($('color-settings'), true);
- expectFalse($('color-settings').querySelector('.color-option').checked);
- expectTrue($('color-settings').querySelector('.bw-option').checked);
+ expectEquals(
+ 'bw', $('color-settings').querySelector('.color-settings-select').value);
});
// Test that the color settings, two options, both custom, defaults to color.
@@ -818,8 +819,9 @@ TEST_F('PrintPreviewWebUITest',
this.nativeLayer_.dispatchEvent(capsSetEvent);
checkSectionVisible($('color-settings'), true);
- expectTrue($('color-settings').querySelector('.color-option').checked);
- expectFalse($('color-settings').querySelector('.bw-option').checked);
+ expectEquals(
+ 'color',
+ $('color-settings').querySelector('.color-settings-select').value);
});
// Test to verify that duplex settings are set according to the printer
« no previous file with comments | « chrome/browser/resources/print_preview/settings/layout_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698