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

Unified Diff: chrome/test/data/extensions/api_test/omnibox/test.html

Issue 7307033: Fix a regression where the omnibox would re-enter extension keyword mode after (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final comment Created 9 years, 5 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/browser/extensions/extension_omnibox_apitest.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/extensions/api_test/omnibox/test.html
diff --git a/chrome/test/data/extensions/api_test/omnibox/test.html b/chrome/test/data/extensions/api_test/omnibox/test.html
index 50e5d4f11597a3af4cb6fe80f89582f3cd0e8e1f..fb46489e8aa667d17a4352eb022d4afd129ff78f 100644
--- a/chrome/test/data/extensions/api_test/omnibox/test.html
+++ b/chrome/test/data/extensions/api_test/omnibox/test.html
@@ -2,19 +2,19 @@
chrome.omnibox.onInputChanged.addListener(
function(text, suggest) {
chrome.test.log("onInputChanged: " + text);
- if (text != "suggestio")
- return;
-
- var desc = 'Description with style: <match>&lt;match&gt;</match>, ' +
- '<dim>[dim]</dim>, <url>(url till end)</url>';
- suggest([
- {
- content: text + "n1",
- description: desc
- },
- {content: text + "n2", description: "description2"},
- {content: text + "n3", description: "description3"},
- ]);
+ if (text == "suggestio") {
+ // First test, complete "suggestio"
+ var desc = 'Description with style: <match>&lt;match&gt;</match>, ' +
+ '<dim>[dim]</dim>, <url>(url till end)</url>';
+ suggest([
+ {content: text + "n1", description: desc},
+ {content: text + "n2", description: "description2"},
+ {content: text + "n3", description: "description3"},
+ ]);
+ } else {
+ // Other tests, just provide a simple suggestion.
+ suggest([{content: text + " 1", description: "description"}]);
+ }
});
chrome.omnibox.onInputEntered.addListener(
« no previous file with comments | « chrome/browser/extensions/extension_omnibox_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698