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

Unified Diff: chrome/test/data/extensions/api_test/cloud_print_private/enable_chrome_connector/cloud_print_incognito_failure_tests.js

Issue 1898503002: Cleanup LocalDiscoveryUIHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 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
Index: chrome/test/data/extensions/api_test/cloud_print_private/enable_chrome_connector/cloud_print_incognito_failure_tests.js
diff --git a/chrome/test/data/extensions/api_test/cloud_print_private/enable_chrome_connector/cloud_print_incognito_failure_tests.js b/chrome/test/data/extensions/api_test/cloud_print_private/enable_chrome_connector/cloud_print_incognito_failure_tests.js
new file mode 100644
index 0000000000000000000000000000000000000000..d588f06864a06fd59686d43f57d5e1655e945f52
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/cloud_print_private/enable_chrome_connector/cloud_print_incognito_failure_tests.js
@@ -0,0 +1,15 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var tests = [
+ function getPrinters() {
+ chrome.cloudPrintPrivate.getPrinters(
+ function(result) {
+ chrome.test.assertLastError("Cannot access in incognito mode");
+ chrome.test.succeed();
+ });
+ }
+];
+
+chrome.test.runTests(tests);

Powered by Google App Engine
This is Rietveld 408576698