| Index: chrome/test/data/webui/print_preview_destination_search_test.js
|
| diff --git a/chrome/test/data/webui/print_preview_destination_search_test.js b/chrome/test/data/webui/print_preview_destination_search_test.js
|
| index 2155bd7820beb4ff844b9bbad2fb318f5ba96494..30878aa1814e178efa2efe65996b003f641e0eb5 100644
|
| --- a/chrome/test/data/webui/print_preview_destination_search_test.js
|
| +++ b/chrome/test/data/webui/print_preview_destination_search_test.js
|
| @@ -234,6 +234,27 @@ TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() {
|
| assertEquals(destId, destinationStore_.selectedDestination.id);
|
| }
|
| });
|
| +
|
| + test('CloudKioskPrinter', function() {
|
| + var printerId = 'cloud-printer-id';
|
| +
|
| + // Create cloud destination.
|
| + var cloudDest = new print_preview.Destination(printerId,
|
| + print_preview.Destination.Type.GOOGLE,
|
| + print_preview.Destination.Origin.DEVICE,
|
| + "displayName",
|
| + print_preview.Destination.ConnectionStatus.ONLINE);
|
| + cloudDest.capabilities = getCaps();
|
| +
|
| + // Place destination in the local list as happens for Kiosk printers.
|
| + destinationSearch_.localList_.updateDestinations([cloudDest]);
|
| + var dest = destinationSearch_.localList_.getDestinationItem(printerId);
|
| + // Simulate a click.
|
| + dest.onActivate_();
|
| +
|
| + // Verify that the destination has been selected.
|
| + assertEquals(printerId, destinationStore_.selectedDestination.id);
|
| + });
|
| });
|
|
|
| mocha.run();
|
|
|