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

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

Issue 12895007: Send onsubmit query down to the instant extended overlay page when a navigation is performed from t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check return value of UpdateSearchState. 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/renderer/searchbox/searchbox.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 a1906fcb147ec53b753b30e2dec674276831f454..6404ca00520fbbc31d437f5ceef60c6be88cb6a6 100644
--- a/chrome/test/data/instant_extended.html
+++ b/chrome/test/data/instant_extended.html
@@ -6,7 +6,7 @@ var apiHandle;
var newTabPageHandle;
var savedUserText = null;
var suggestionIndex = -1;
-var suggestions = ["result 1", "result 2", "result 3"];
+var suggestions = ["result 1", "result 2", "http://www.google.com"];
var suggestion;
var behavior = 2;
var onMostVisitedChangedCalls = 0;
@@ -14,6 +14,7 @@ var mostVisitedItemsCount = 0;
var firstMostVisitedItemId = 0;
var onNativeSuggestionsCalls = 0;
var onChangeCalls = 0;
+var submitCount = 0;
function getApiHandle() {
if (window.navigator && window.navigator.searchBox)
@@ -41,6 +42,7 @@ function handleNativeSuggestions() {
function handleSubmit() {
location.hash = 'q=' + encodeURIComponent(apiHandle.value);
+ submitCount++;
}
function handleOnChange() {
« no previous file with comments | « chrome/renderer/searchbox/searchbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698