1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug612271-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<!DOCTYPE HTML><html><head> 1.5 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.6 +</head> 1.7 +<body> 1.8 + <textarea id="target" style="height: 100px; -moz-appearance: none" spellcheck="false" 1.9 + onkeypress="this.style.display='block';this.style.height='200px';">foo</textarea> 1.10 +<script> 1.11 + var t = document.querySelector("textarea"); 1.12 + t.focus(); 1.13 + t.selectionStart = t.selectionEnd = t.value.length; 1.14 + sendKey('RETURN'); 1.15 + document.body.appendChild(document.createTextNode(t.selectionStart + " - " + t.selectionEnd)); 1.16 +</script> 1.17 +</body> 1.18 +</html>