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

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

Issue 345433002: Relax media size capability restriction to printing PDF file to Save as PDF printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/data/ticket_items/media_size.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 e87d594b2706a285f6697f4115e60894aba47895..a86cf205acc933a6f6ed7bc59439665bcb2cdd6f 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -313,9 +313,7 @@ TEST_F('PrintPreviewWebUITest', 'TestSectionsDisabled', function() {
// When the source is 'PDF' and 'Save as PDF' option is selected, we hide the
// fit to page option.
-TEST_F('PrintPreviewWebUITest',
- 'PrintToPDFSelectedHideFitToPageOption',
- function() {
+TEST_F('PrintPreviewWebUITest', 'PrintToPDFSelectedCapabilities', function() {
// Add PDF printer.
this.initialSettings_.isDocumentModifiable_ = false;
this.initialSettings_.systemDefaultDestinationId_ = 'Save as PDF';
@@ -359,6 +357,7 @@ TEST_F('PrintPreviewWebUITest',
this.nativeLayer_.dispatchEvent(capsSetEvent);
checkSectionVisible($('other-options-settings'), false);
+ checkSectionVisible($('media-size-settings'), false);
});
// When the source is 'HTML', we always hide the fit to page option and show
@@ -411,7 +410,7 @@ TEST_F('PrintPreviewWebUITest', 'SourceIsPDFCapabilities', function() {
expectTrue(
$('other-options-settings').querySelector('.fit-to-page-checkbox').
checked);
- checkSectionVisible($('media-size-settings'), false);
+ checkSectionVisible($('media-size-settings'), true);
});
// When the print scaling is disabled for the source "PDF", we show the fit
« no previous file with comments | « chrome/browser/resources/print_preview/data/ticket_items/media_size.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698