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

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

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 years, 7 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/test/data/extensions/api_test/omnibox/manifest.json ('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
new file mode 100644
index 0000000000000000000000000000000000000000..395596262bdad6a540f6b254f4e88ebaf9a49e5a
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/omnibox/test.html
@@ -0,0 +1,23 @@
+<script>
+if (!chrome.omnibox) {
+ chrome.omnibox = chrome.experimental.omnibox;
+}
+
+chrome.experimental.omnibox.onInputChanged.addListener(
+ function(text, suggest) {
+ suggest([
+ {content: text + "n1", description: "description1"},
+ {content: text + "n2", description: "description2"},
+ {content: text + "n3", description: "description3"}
+ ]);
+ });
+
+chrome.experimental.omnibox.onInputEntered.addListener(
+ function(text) {
+ chrome.test.assertEq("command", text);
+ chrome.test.notifyPass();
+ });
+
+// Now we wait for the input events to fire.
+chrome.test.notifyPass();
+</script>
« no previous file with comments | « chrome/test/data/extensions/api_test/omnibox/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698