OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script language="javascript" type="text/javascript"> | 7 <script language="javascript" type="text/javascript"> |
8 description('Test that WebKit changes the dir attribute and sends an input event
when we change the text direction.'); | 8 description('Test that WebKit changes the dir attribute and sends an input event
when we change the text direction.'); |
9 | 9 |
10 // The string used for storing the expected text direction when we receive an in
put event. | 10 // The string used for storing the expected text direction when we receive an in
put event. |
11 var expected = ''; | 11 var expected = ''; |
12 var sentInputEvent = false; | 12 var sentInputEvent = false; |
13 | 13 |
14 function removeChildAndForceGC(child) { | 14 function removeChildAndForceGC(child) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Change the text direction of the input element to LTR. | 70 // Change the text direction of the input element to LTR. |
71 // This also removes the element to verify WebKit works without crashes. | 71 // This also removes the element to verify WebKit works without crashes. |
72 expected = 'ltr'; | 72 expected = 'ltr'; |
73 sentInputEvent = false; | 73 sentInputEvent = false; |
74 input.focus(); | 74 input.focus(); |
75 testRunner.setTextDirection('ltr'); | 75 testRunner.setTextDirection('ltr'); |
76 shouldBeTrue('sentInputEvent'); | 76 shouldBeTrue('sentInputEvent'); |
77 </script> | 77 </script> |
78 </body> | 78 </body> |
79 </html> | 79 </html> |
OLD | NEW |