blob: 79c6b51484cea99e73fd64b677ca79a9648504c5 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
var sf = document.getElementById('sf');
sf.focus();
if (window.testRunner) {
testRunner.dumpAsText();
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');"></input>
<div id="res"></div>
</body>
</html>