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

Unified Diff: chrome/test/data/instant_extended.html

Issue 13141002: Use Instant suggested match type for Instant temporary text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test 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/ui/search/instant_extended_interactive_uitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/instant_extended.html
diff --git a/chrome/test/data/instant_extended.html b/chrome/test/data/instant_extended.html
index 0fb540d1bd9325d5e9fb726f536c48340161d061..26001642e0633ed20e2af48573f684d86dd259de 100644
--- a/chrome/test/data/instant_extended.html
+++ b/chrome/test/data/instant_extended.html
@@ -8,7 +8,8 @@ var savedUserText = null;
var suggestionIndex = -1;
var suggestions = ["result 1", "result 2", "http://www.google.com"];
var suggestion;
-var behavior = 2;
+var suggestionType = 0; // INSTANT_SUGGESTION_SEARCH
+var behavior = 2; // INSTANT_COMPLETE_NEVER
var onMostVisitedChangedCalls = 0;
var mostVisitedItemsCount = 0;
var firstMostVisitedItemId = 0;
@@ -56,7 +57,7 @@ function handleOnChange() {
function nextSuggestion() {
if (suggestionIndex < suggestions.length - 1) {
suggestionIndex++;
- apiHandle.setValue(suggestions[suggestionIndex]);
+ apiHandle.setValue(suggestions[suggestionIndex], suggestionType);
}
}
@@ -64,9 +65,9 @@ function previousSuggestion() {
if (suggestionIndex != -1) {
suggestionIndex--;
if (suggestionIndex == -1) {
- apiHandle.setValue(savedUserText);
+ apiHandle.setValue(savedUserText, suggestionType);
} else {
- apiHandle.setValue(suggestions[suggestionIndex]);
+ apiHandle.setValue(suggestions[suggestionIndex], suggestionType);
}
}
}
« no previous file with comments | « chrome/browser/ui/search/instant_extended_interactive_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698