Chromium Code Reviews| 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 9af4ebd350e6e2dff3a1b83f49099b8dd6b7aa65..3d7e6c1028527022e900baf1ba09e2ad518f9600 100644 |
| --- a/chrome/test/data/webui/print_preview/print_preview_tests.js |
| +++ b/chrome/test/data/webui/print_preview/print_preview_tests.js |
| @@ -1309,7 +1309,28 @@ cr.define('print_preview_test', function() { |
| expectFalse(printButton.disabled); |
| printButton.click(); |
| // This should result in a call to print. |
| - return nativeLayer.whenCalled('print'); |
| + return nativeLayer.whenCalled('print').then( |
| + /** |
| + * @param {destination: !print_preview.Destination, |
| + * printTicketStore: !print_preview.PrintTicketStore, |
| + * cloudPrintInterface: print_preview |
| + * .CloudPrintInterface, |
| + * documentInfo: print_preview.DocumentInfo} args |
| + * The arguments that print() was called with. |
| + */ |
| + function(args) { |
| + // Sanity check some printing argument values. |
| + var printTicketStore = args.printTicketStore; |
| + expectEquals(args.destination.id, 'BarDevice'); |
| + expectEquals(printTicketStore.landscape.getValue(), false); |
| + expectEquals(printTicketStore.copies.getValueAsNumber(), 1); |
| + expectEquals( |
| + printTicketStore.mediaSize.getValue().width_microns, |
| + 215900); |
|
dpapad
2017/06/27 18:49:00
Can we store the result of getCddTemplate() at lin
rbpotter
2017/06/28 01:14:57
Done.
|
| + expectEquals( |
| + printTicketStore.mediaSize.getValue().height_microns, |
| + 279400); |
| + }); |
| }); |
| }); |
| }); |