Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=353539
5 -->
6 <head>
7 <title>Test for Bug 353539</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=353539">Mozilla Bug 353539</a>
13 <p id="display">
14 <textarea id="area" rows="5">
15 Here
16 is
17 some
18 very
19 long
20 text
21 that
22 we're
23 using
24 for
25 testing
26 purposes
27 </textarea>
28 </p>
29 <div id="content" style="display: none">
31 </div>
32 <pre id="test">
33 <script type="application/javascript">
35 /** Test for Bug 353539 **/
36 SimpleTest.waitForExplicitFinish();
37 addLoadEvent(function() {
38 var area = document.getElementById("area");
40 is(area.scrollTop, 0, "The textarea should not be scrolled initially");
41 area.focus();
42 setTimeout(function() {
43 is(area.scrollTop, 0, "The textarea's insertion point should not be scrolled into view");
45 SimpleTest.finish();
46 }, 0);
47 });
49 </script>
50 </pre>
51 </body>
52 </html>