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

Unified Diff: chrome/test/data/extensions/api_test/passwords_private/test.js

Issue 1892613006: Add functions to the passwords private api that update the lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/passwords_private/test.js
diff --git a/chrome/test/data/extensions/api_test/passwords_private/test.js b/chrome/test/data/extensions/api_test/passwords_private/test.js
index cd8876d24ed5058024db02bc3bc67019c09acbbb..cc2faa98670615478e089bd6fda46b805a907292 100644
--- a/chrome/test/data/extensions/api_test/passwords_private/test.js
+++ b/chrome/test/data/extensions/api_test/passwords_private/test.js
@@ -64,6 +64,27 @@ var availableTests = [
chrome.passwordsPrivate.requestPlaintextPassword(
{originUrl: 'http://www.test.com', username: 'test@test.com'});
},
+
+ function requestSavedPasswordList() {
+ var callback = function() {
+ // Ensure that the callback is invoked.
+ chrome.test.succeed();
+ };
+
+ chrome.passwordsPrivate.onSavedPasswordsListChanged.addListener(callback);
+ chrome.passwordsPrivate.requestSavedPasswordList();
+ },
+
+ function requestPasswordExceptionList() {
+ var callback = function() {
+ // Ensure that the callback is invoked.
+ chrome.test.succeed();
+ };
+
+ chrome.passwordsPrivate.onPasswordExceptionsListChanged.addListener(
+ callback);
+ chrome.passwordsPrivate.requestPasswordExceptionList();
+ },
];
var testToRun = window.location.search.substring(1);

Powered by Google App Engine
This is Rietveld 408576698