blob: 7e2189093d3d0e9992aecbe680801f2c86736847 [file] [log] [blame]
<!DOCTYPE html>
<head>
<script type="text/javascript" src="resources/reveal-utilities.js"></script>
</head>
<body>
<div>When the caret is scrolled out, on starting typing it must be brought to the center of the control.</div>
<textarea name="textarea" id="textarea" rows="10" cols="10" style="-webkit-transform:rotate(180deg)"></textarea>
<script>
var textArea = document.getElementById("textarea");
textArea.textContent = generateNumbers(0, 30, 2, "\n");
textArea.focus();
textArea.selectionStart = 36;
if (window.eventSender) {
eventSender.keyDown(">");
document.body.innerHTML = textarea.scrollTop > 0 ? "PASS" : "FAIL";
}
if (window.testRunner) {
testRunner.dumpAsText();
}
</script>
</body>