OLD | NEW |
(Empty) | |
| 1 <script> |
| 2 if (!chrome.omnibox) { |
| 3 chrome.omnibox = chrome.experimental.omnibox; |
| 4 } |
| 5 |
| 6 chrome.experimental.omnibox.onInputChanged.addListener( |
| 7 function(text, suggest) { |
| 8 suggest([ |
| 9 {content: text + "n1", description: "description1"}, |
| 10 {content: text + "n2", description: "description2"}, |
| 11 {content: text + "n3", description: "description3"} |
| 12 ]); |
| 13 }); |
| 14 |
| 15 chrome.experimental.omnibox.onInputEntered.addListener( |
| 16 function(text) { |
| 17 chrome.test.assertEq("command", text); |
| 18 chrome.test.notifyPass(); |
| 19 }); |
| 20 |
| 21 // Now we wait for the input events to fire. |
| 22 chrome.test.notifyPass(); |
| 23 </script> |
OLD | NEW |