| 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="../../fast/js/resources/js-test-pre.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. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 shouldBeTrue('sentInputEvent'); | 68 shouldBeTrue('sentInputEvent'); |
| 69 | 69 |
| 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 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 79 </body> | 78 </body> |
| 80 </html> | 79 </html> |
| OLD | NEW |