| 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>
|
|
|