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 df906a8d5ee54a101d4e04ef87bcb9dccb077146..bff7cce5b1f82c3f3d5d735cc20a399e09da56c2 100644 |
--- a/chrome/test/data/webui/print_preview.js |
+++ b/chrome/test/data/webui/print_preview.js |
@@ -224,6 +224,10 @@ function checkElementDisplayed(el, isDisplayed) { |
// Test that disabled settings hide the disabled sections. |
TEST_F('PrintPreviewWebUITest', 'TestSectionsDisabled', function() { |
+ checkSectionVisible($('layout-settings'), true); |
+ checkSectionVisible($('color-settings'), true); |
+ checkSectionVisible($('copies-settings'), true); |
+ |
var initialSettingsSetEvent = |
new cr.Event(print_preview.NativeLayer.EventType.INITIAL_SETTINGS_SET); |
initialSettingsSetEvent.initialSettings = this.initialSettings_; |
@@ -234,10 +238,6 @@ TEST_F('PrintPreviewWebUITest', 'TestSectionsDisabled', function() { |
localDestsSetEvent.destinationInfos = this.localDestinationInfos_; |
this.nativeLayer_.dispatchEvent(localDestsSetEvent); |
- checkSectionVisible($('layout-settings'), true); |
- checkSectionVisible($('color-settings'), true); |
- checkSectionVisible($('copies-settings'), true); |
- |
var capsSetEvent = |
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET); |
capsSetEvent.settingsInfo = { |