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

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

Issue 2961773003: Print Preview: Update test to check parameters sent to print() (Closed)
Patch Set: 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/native_layer_stub.js
diff --git a/chrome/test/data/webui/print_preview/native_layer_stub.js b/chrome/test/data/webui/print_preview/native_layer_stub.js
index 23e223ee290476340d88b4fde885a62d231159b4..dce4eec7dc332818c157b8e7c89a910740f65458 100644
--- a/chrome/test/data/webui/print_preview/native_layer_stub.js
+++ b/chrome/test/data/webui/print_preview/native_layer_stub.js
@@ -98,8 +98,13 @@ cr.define('print_preview', function() {
},
/** @override */
- print: function() {
- this.methodCalled('print');
+ print: function(
+ destination, printTicketStore, cloudPrintInterface, documentInfo) {
+ var args = {"destination": destination,
dpapad 2017/06/27 18:49:00 Nit1: Prefer single quotes instead of double quote
rbpotter 2017/06/28 01:14:57 Done.
+ "printTicketStore": printTicketStore,
+ "cloudPrintInterface": cloudPrintInterface,
+ "documentInfo": documentInfo };
+ this.methodCalled('print', args);
return Promise.resolve();
},

Powered by Google App Engine
This is Rietveld 408576698