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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js

Issue 14312009: drive: Add a very basic browser test for the autocomplete feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 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/file_manager/js/test_util.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/extensions/api_test/file_manager_browsertest/test_cases.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
index 6860d300b017012d07df241c82de8b60ec6677e7..1a0253217c5e0024261191918bccf2b456006d31 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
@@ -173,3 +173,26 @@ testcase.openSidebarRecent = function() {
});
});
};
+
+/**
+ * Tests autocomplete with a query 'hello'. This test is only available for
+ * Drive.
+ */
+testcase.autocomplete = function() {
+ var EXPECTED_AUTOCOMPLETE_LIST = [
+ '\'hello\' - search Drive\n',
+ 'hello.txt\n',
+ ];
+
+ var onAutocompleteListShown = chrome.test.callbackPass(
+ function(autocompleteList) {
+ chrome.test.assertEq(EXPECTED_AUTOCOMPLETE_LIST, autocompleteList);
+ });
+
+ setupAndWaitUntilReady('/drive/root', function(appId, list) {
+ callRemoteTestUtil('performAutocompleteAndWait',
+ appId,
+ ['hello', EXPECTED_AUTOCOMPLETE_LIST.length],
+ onAutocompleteListShown);
+ });
+};
« no previous file with comments | « chrome/browser/resources/file_manager/js/test_util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698