Roll src/third_party/skia 5141d90:0e6ff38
[chromium-blink-merge.git] / chrome / test / data / instant.html
blob30c4c2208b9c85a82212709ae0f0559b6851576f
1 <html><body><h1>Instant</h1><script>
3 var onvisibilitycalls = 0;
4 document.addEventListener("visibilitychange", function() {
5 onvisibilitycalls++;
6 }, false);
8 var onchangecalls = 0;
9 var onsubmitcalls = 0;
10 var oncancelcalls = 0;
11 var onresizecalls = 0;
13 var value = "";
14 var verbatim = false;
15 var height = 0;
17 var suggestion = [ { value: "query suggestion" } ];
18 var behavior = "now";
20 chrome.embeddedSearch.searchBox.onchange = function() {
21 onchangecalls++;
22 value = chrome.embeddedSearch.searchBox.value;
23 verbatim = chrome.embeddedSearch.searchBox.verbatim;
24 chrome.embeddedSearch.searchBox.setSuggestions({
25 suggestions: suggestion,
26 complete_behavior: behavior
27 });
30 chrome.embeddedSearch.searchBox.onsubmit = function() {
31 onsubmitcalls++;
32 value = chrome.embeddedSearch.searchBox.value;
33 verbatim = chrome.embeddedSearch.searchBox.verbatim;
36 chrome.embeddedSearch.searchBox.oncancel = function() {
37 oncancelcalls++;
38 value = chrome.embeddedSearch.searchBox.value;
39 verbatim = chrome.embeddedSearch.searchBox.verbatim;
42 chrome.embeddedSearch.searchBox.onresize = function() {
43 onresizecalls++;
44 height = chrome.embeddedSearch.searchBox.height;
47 if (chrome.embeddedSearch.searchBox.value != "")
48 chrome.embeddedSearch.searchBox.onchange();
50 </script></body></html>