| 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);
|
|
|