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

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

Issue 15495007: Begins preview generation as soon as initial state is loaded. Doesn't wait for print destination to… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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/preview_generator.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 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 = {
« no previous file with comments | « chrome/browser/resources/print_preview/preview_generator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698