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><match></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><match></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( |