2016-03-17 19:27:56 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
2019-04-16 06:50:44 +03:00
|
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
2016-03-17 19:27:56 +03:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Testcase #1 for bug 1237236</title>
|
|
|
|
<script>
|
|
|
|
function test1() {
|
2018-02-14 22:15:39 +03:00
|
|
|
synthesizeKey("KEY_ArrowDown", {shiftKey: true}); // select first line including the newline
|
|
|
|
synthesizeKey("KEY_ArrowRight"); // collapse to the end of the selection
|
2016-03-17 19:27:56 +03:00
|
|
|
// caret should now be at the start of the second line
|
|
|
|
document.body.offsetHeight;
|
|
|
|
setTimeout(function(){ document.documentElement.removeAttribute("class"); },0);
|
|
|
|
}
|
|
|
|
function runTests() {
|
|
|
|
document.querySelector('textarea').focus();
|
|
|
|
document.body.offsetHeight;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2017-05-21 12:15:00 +03:00
|
|
|
<textarea onfocus="test1()" spellcheck="false" style="-moz-appearance:none">abc
|
2016-03-17 19:27:56 +03:00
|
|
|
def</textarea>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
SimpleTest.waitForFocus(runTests);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|