| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 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 <style> | 5 <style> |
| 6 #test { width: 300px; font-size: 50px; line-height: 10px; border: solid 1px blac
k; padding: 5px; } | 6 #test { width: 300px; font-size: 50px; line-height: 10px; border: solid 1px blac
k; padding: 5px; } |
| 7 #test span { border: solid 1px red; } | 7 #test span { border: solid 1px red; } |
| 8 </style> | 8 </style> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <p>This test ensures WebKit can place caret after the line even when the line-he
ight is smaller than a line. | 11 <p>This test ensures WebKit can place caret after the line even when the line-he
ight is smaller than a line. |
| 12 To manually test, click inside the black box outside the red box. | 12 To manually test, click inside the black box outside the red box. |
| 13 The caret should be placed at the end of "hello".</p> | 13 The caret should be placed at the end of "hello".</p> |
| 14 <p>Also test that when you click in the red box above or below the black box, ca
ret is placed at where you clicked.</p> | 14 <p>Also test that when you click in the red box above or below the black box, ca
ret is placed at where you clicked.</p> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 debug('Click below black box'); | 67 debug('Click below black box'); |
| 68 clickBetweenEachLetterAndVerify(span.offsetTop + span.offsetHeight - 1); | 68 clickBetweenEachLetterAndVerify(span.offsetTop + span.offsetHeight - 1); |
| 69 | 69 |
| 70 test.style.display = 'none'; | 70 test.style.display = 'none'; |
| 71 } | 71 } |
| 72 | 72 |
| 73 | 73 |
| 74 </script> | 74 </script> |
| 75 </body> | 75 </body> |
| 76 </html> | 76 </html> |
| OLD | NEW |