blob: 816c714f0271bcaf9863b7a66dea34a5ae946c8e [file] [log] [blame]
<html>
<head>
<script>
function test()
{
var sf = document.getElementById('sf');
sf.focus();
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
eventSender.keyDown("\r", []);
}
}
function log(msg)
{
var res = document.getElementById('res');
res.innerHTML = res.innerHTML + msg + "<br>";
}
</script>
</head>
<body onload="test()">
This tests that onSearch fires correctly.<br>
<input type="search" id="sf" onSearch="log('Test Passed'); testRunner.notifyDone();"></input>
<div id="res"></div>
</body>
</html>