Index: chrome/test/data/instant/search.html |
diff --git a/chrome/test/data/instant/search.html b/chrome/test/data/instant/search.html |
index 60c8a2acb99d917022bde3e3391ba8c9183758d7..7e68897cf396978d36e9b3c38e165188162952bf 100644 |
--- a/chrome/test/data/instant/search.html |
+++ b/chrome/test/data/instant/search.html |
@@ -15,18 +15,24 @@ var searchBox = window.chrome.searchBox || {}; |
window.beforeLoadSearchBox = {}; |
for (var prop in searchBox) window.beforeLoadSearchBox[prop] = searchBox[prop]; |
+window.setSuggestionsArgument = { |
+ suggestions: [ |
+ { value: "abcdef" } |
+ ] |
+}; |
+ |
window.chrome.searchBox.onsubmit = function() { |
- searchBox.setSuggestions(["abcdef"]); |
+ searchBox.setSuggestions(setSuggestionsArgument); |
window.onsubmitcalls++; |
}; |
window.chrome.searchBox.onchange = function() { |
- searchBox.setSuggestions(["abcdef"]); |
+ searchBox.setSuggestions(setSuggestionsArgument); |
window.onchangecalls++; |
}; |
window.chrome.searchBox.oncancel = function() { |
- searchBox.setSuggestions(["abcdef"]); |
+ searchBox.setSuggestions(setSuggestionsArgument); |
window.oncancelcalls++; |
}; |