Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / onsearch-enter.html
blob79c6b51484cea99e73fd64b677ca79a9648504c5
1 <html>
2 <head>
3 <script>
4 function test()
6 var sf = document.getElementById('sf');
7 sf.focus();
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 eventSender.keyDown("\r", []);
13 function log(msg)
15 var res = document.getElementById('res');
16 res.innerHTML = res.innerHTML + msg + "<br>";
18 </script>
19 </head>
20 <body onload="test()">
21 This tests that onSearch fires correctly.<br>
22 <input type="search" id="sf" onSearch="log('Test Passed');"></input>
23 <div id="res"></div>
24 </body>
25 </html>