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

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: TODO 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
Index: chrome/test/data/instant_extended.html
diff --git a/chrome/test/data/instant_extended.html b/chrome/test/data/instant_extended.html
index a1906fcb147ec53b753b30e2dec674276831f454..1fc6275f7a053c6eb1b5ef90671232ea49296de5 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", "result 3"];
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;
@@ -53,7 +54,7 @@ function handleOnChange() {
function nextSuggestion() {
if (suggestionIndex < suggestions.length - 1) {
suggestionIndex++;
- apiHandle.setValue(suggestions[suggestionIndex]);
+ apiHandle.setValue(suggestions[suggestionIndex], suggestionType);
}
}
@@ -61,9 +62,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);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698