mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Note that this patch also replaces legacy VK_* with KEY_*, and replaces synthesizeKey() for inputting some characters with sendString() because it's better and clearer what it does and it sets shiftKey state properly. MozReview-Commit-ID: De4enbjux3T
30 lines
807 B
HTML
30 lines
807 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
|
<meta charset="utf-8">
|
|
<title>Testcase #2 for bug 1237236</title>
|
|
<script>
|
|
function test1() {
|
|
synthesizeKey("KEY_ArrowRight", {repeat: 4});
|
|
document.body.offsetHeight;
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
function runTests() {
|
|
document.querySelector('pre').focus();
|
|
document.body.offsetHeight;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abc
|
|
def</pre>
|
|
|
|
<script>
|
|
SimpleTest.waitForFocus(runTests);
|
|
</script>
|
|
</body>
|
|
</html>
|