Index: chrome/test/data/extensions/api_test/chrome_auth_private/enable_chrome_connector/cloud_print_success_tests.js |
diff --git a/chrome/test/data/extensions/api_test/chrome_auth_private/enable_chrome_connector/cloud_print_success_tests.js b/chrome/test/data/extensions/api_test/chrome_auth_private/enable_chrome_connector/cloud_print_success_tests.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..06bf29a7de0a3b6e7b3e51ad611a4f6b3fb54098 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/chrome_auth_private/enable_chrome_connector/cloud_print_success_tests.js |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2011 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 successfulSetCreds() { |
+ var userEmail = 'foo@gmail.com'; |
+ var robotEmail = 'foorobot@googleusercontent.com'; |
+ var credentials = '1/23546efa54'; |
+ chrome.chromeAuthPrivate.setCloudPrintCredentials( |
+ userEmail, robotEmail, credentials, |
+ chrome.test.callbackPass(function(result) { |
Matt Perry
2011/06/24 19:11:09
indent -1
sanjeevr
2011/06/24 22:38:48
Done.
|
+ // In test mode, we expect the API to reflect the arguments back to |
+ // us appended together. |
+ chrome.test.assertNoLastError(); |
+ chrome.test.assertEq(result, userEmail + robotEmail + credentials); |
+ })); |
+ } |
+]; |
+ |
+chrome.test.runTests(tests); |