4 https://bugzilla.mozilla.org/show_bug.cgi?id=514156
7 <title>Test for Bug
514156</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=514156">Mozilla Bug
514156</a>
17 <input type=
"text" id=
"input1">
18 <input type=
"text" id=
"input2">
21 <script class=
"testbody" type=
"text/javascript">
23 /** Test for Bug
514156 **/
25 SimpleTest.waitForExplicitFinish();
28 var input1 = $(
"input1");
30 sendString(
"\u200e\u05d0\u05d1");
31 is(escape(input1.value), escape(
"\u200e\u05d0\u05d1"),
"non-spacing character and direction change shouldn't change content");
33 var input2 = $(
"input2");
37 is(escape(input2.value), escape(
"\u05b6abc"),
"non-spacing character and direction change shouldn't change content");