blob: 93dc29731aa90ae3cf7d35c99e713b2e2d94afbb [file] [log] [blame]
<html>
<head>
<script src="../../editing/editing.js"></script>
<script>
function test() {
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
document.getElementById('tf').focus();
selectAllCommand();
document.getElementById('ta').focus();
selectAllCommand();
}
function log(msg) {
document.getElementById('res').innerHTML = document.getElementById('res').innerHTML + msg + "<br>";
}
</script>
</head>
<body onload="test()">
This tests that onSelect will fire for textfields and textareas when select-all is invoked.<br/>
<input id="tf" value="test" onSelect="log('Test Passed: textfield')"><br/>
<textarea id="ta" onSelect="log('Test Passed: textarea')">test</textarea><br/>
<div id="res"></div>
</body>
</html>