4 https://bugzilla.mozilla.org/show_bug.cgi?id=692520
7 <title>Test for Bug
692520</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=692520">Mozilla Bug
692520</a>
19 <script type=
"application/javascript">
21 /** Test for Bug
692520 **/
22 function test(prop, value) {
23 var t = document.querySelector(
"textarea");
27 t.selectionDirection =
"backward";
29 document.body.clientWidth;
30 t.style.display =
"none";
31 is(t[prop], value,
"Correct value for the " + prop +
" property");
34 test(
"selectionStart",
1);
35 test(
"selectionEnd",
3);
36 test(
"selectionDirection",
"backward");