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

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

Issue 556363003: Print Preview UI tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust browser_tests accordingly. 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/more_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 4d0701b41d877b46ebc8430ce52b5a8c5dd9dbab..d5dc8dac97af6b3e95348be078f579f1c4dfed20 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -431,20 +431,10 @@ TEST_F('PrintPreviewWebUITest', 'SourceIsPDFCapabilities', function() {
capsSetEvent.settingsInfo = getCddTemplate("FooDevice");
this.nativeLayer_.dispatchEvent(capsSetEvent);
- var moreSettingsDiv = $('more-settings');
var otherOptionsDiv = $('other-options-settings');
- // Check that options are collapsed (section is visible, because duplex is
- // available).
checkSectionVisible(otherOptionsDiv, true);
checkElementDisplayed(
- otherOptionsDiv.querySelector('.fit-to-page-container'), false);
- checkSectionVisible($('media-size-settings'), false);
- // Expand it.
- checkSectionVisible(moreSettingsDiv, true);
- moreSettingsDiv.click();
-
- checkElementDisplayed(
otherOptionsDiv.querySelector('.fit-to-page-container'), true);
expectTrue(
otherOptionsDiv.querySelector('.fit-to-page-checkbox').checked);
@@ -475,15 +465,9 @@ TEST_F('PrintPreviewWebUITest', 'PrintScalingDisabledForPlugin', function() {
cr.dispatchSimpleEvent(
this.nativeLayer_, print_preview.NativeLayer.EventType.DISABLE_SCALING);
- var moreSettingsDiv = $('more-settings');
var otherOptionsDiv = $('other-options-settings');
- // Check that options are collapsed (section is visible, because duplex is
- // available).
checkSectionVisible(otherOptionsDiv, true);
- // Expand it.
- checkSectionVisible(moreSettingsDiv, true);
- moreSettingsDiv.click();
checkElementDisplayed(
otherOptionsDiv.querySelector('.fit-to-page-container'), true);
« no previous file with comments | « chrome/browser/resources/print_preview/settings/more_settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698