4 https://bugzilla.mozilla.org/show_bug.cgi?id=332655
7 <title>Test for Bug
332655</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script src=
"/tests/SimpleTest/WindowSnapshot.js"></script>
10 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 <body onload=
"test()">
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=332655">Mozilla Bug
332655</a>
17 <input type=
"text" id=
"testInput"
18 style=
"-moz-appearance: none"> <!-- bug 1204897 workaround -->
21 <script class=
"testbody" type=
"text/javascript">
23 /** Test for Bug
332655 **/
25 SimpleTest.waitForExplicitFinish();
28 var textInput = $(
"testInput");
29 var s1, s2, s3, equal, str1, str2;
33 sendString(
"\u05d0\u05d1");
34 s1 = snapshotWindow(window);
37 s2 = snapshotWindow(window);
39 [equal, str1, str2] = compareSnapshots(s1, s2, true);
40 ok(equal,
"space after LTR + RTL shouldn't change direction: expected " +
41 str1 +
" but got " + str2);
43 synthesizeKey(
"KEY_Backspace");
44 s3 = snapshotWindow(window);
46 [equal, str1, str2] = compareSnapshots(s1, s3, true);
47 ok(equal,
"backspace should restore the status quo: expected " + str1 +