| 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);
|
| }
|
| }
|
| }
|
|
|