no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / base / tests / bug1259949-2.html
blobce4b61fe29a2d252d2e2718263c7a91fd7e108bb
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <head>
4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
5 <script src="/tests/SimpleTest/EventUtils.js"></script>
6 <meta charset="utf-8">
7 <title>Testcase #2 for bug 1259949</title>
8 <script>
9 function test1() {
10 document.body.offsetHeight;
11 document.documentElement.removeAttribute("class");
13 function runTests() {
14 var pre = document.querySelector('pre');
15 window.getSelection().collapse(pre, 1/*after the text*/)
16 pre.focus();
17 document.body.offsetHeight;
19 </script>
20 </head>
21 <body onload="runTests()">
23 <pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abcdef
24 <br></pre>
26 <script>
27 SimpleTest.waitForFocus(runTests);
28 </script>
29 </body>
30 </html>