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

Unified Diff: chrome/test/data/instant/search.html

Issue 6310003: Support specified JSON as argument to setSuggestions(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Address comments Created 9 years, 11 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/renderer/searchbox_extension.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/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++;
};
« no previous file with comments | « chrome/renderer/searchbox_extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698