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

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

Issue 2838603004: Re-enable Cloud printers for ChromeOS kiosks. (Closed)
Patch Set: fix indentation Created 3 years, 8 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/search/destination_search.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_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();
« no previous file with comments | « chrome/browser/resources/print_preview/search/destination_search.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698