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

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

Issue 2948723002: Print Preview: Change print to cr.sendWithPromise (Closed)
Patch Set: Address comments and add close_ param Created 3 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
Index: chrome/test/data/webui/print_preview/print_preview_tests.js
diff --git a/chrome/test/data/webui/print_preview/print_preview_tests.js b/chrome/test/data/webui/print_preview/print_preview_tests.js
index 33ddef39b060097a8a8edc667aa041f549d58213..d958a30daae3634ec748dfad984f715919223335 100644
--- a/chrome/test/data/webui/print_preview/print_preview_tests.js
+++ b/chrome/test/data/webui/print_preview/print_preview_tests.js
@@ -1307,9 +1307,9 @@ cr.define('print_preview_test', function() {
// Has active print button and successfully 'prints', indicating
// recovery from error state.
expectFalse(printButton.disabled);
- expectFalse(nativeLayer.isPrintStarted());
printButton.click();
- expectTrue(nativeLayer.isPrintStarted());
+ // This should result in a call to print.
+ return nativeLayer.whenCalled('print');
});
});
});

Powered by Google App Engine
This is Rietveld 408576698