| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4     <title>Touch Adjustment : Inlines and line-breaks - bug 78801</title> | 4     <title>Touch Adjustment : Inlines and line-breaks - bug 78801</title> | 
| 5     <script src="../fast/js/resources/js-test-pre.js"></script> | 5     <script src="../fast/js/resources/js-test-pre.js"></script> | 
| 6     <script src="resources/touchadjustment.js"></script> | 6     <script src="resources/touchadjustment.js"></script> | 
| 7     <style> | 7     <style> | 
| 8         #sandbox { position: absolute; top: 0px; left: 0px; font: 16px Ahem; lin
    e-height: 20px } | 8         #sandbox { position: absolute; top: 0px; left: 0px; font: 16px Ahem; lin
    e-height: 20px } | 
| 9     </style> | 9     </style> | 
| 10 </head> | 10 </head> | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57         testTouchPoint(touchPoint(230, 74, 20), e['4']); | 57         testTouchPoint(touchPoint(230, 74, 20), e['4']); | 
| 58         testTouchPoint(touchPoint(30, 100, 20), e['4']); | 58         testTouchPoint(touchPoint(30, 100, 20), e['4']); | 
| 59         testTouchPoint(touchPoint(24, 170, 20), e['6']); | 59         testTouchPoint(touchPoint(24, 170, 20), e['6']); | 
| 60 | 60 | 
| 61     } | 61     } | 
| 62 | 62 | 
| 63     function runTests() | 63     function runTests() | 
| 64     { | 64     { | 
| 65         if (window.testRunner && window.internals && internals.touchNodeAdjusted
    ToBestClickableNode) { | 65         if (window.testRunner && window.internals && internals.touchNodeAdjusted
    ToBestClickableNode) { | 
| 66             description('Tests touch-adjustment on inline links. Making sure we 
    can hit over line-breaks, and can miss when tapping between parts of a line-brok
    en link.'); | 66             description('Tests touch-adjustment on inline links. Making sure we 
    can hit over line-breaks, and can miss when tapping between parts of a line-brok
    en link.'); | 
| 67             // Mouse events only work after an initial layout |  | 
| 68             document.body.offsetLeft; |  | 
| 69             testDirectTouches(); | 67             testDirectTouches(); | 
| 70             testDirectMisses(); | 68             testDirectMisses(); | 
| 71             testIndirectTouches(); | 69             testIndirectTouches(); | 
| 72             e['sandbox'].style.display = 'none'; | 70             e['sandbox'].style.display = 'none'; | 
| 73         } | 71         } | 
| 74     } | 72     } | 
| 75     runTests(); | 73     runTests(); | 
| 76 </script> | 74 </script> | 
| 77 <script src="../fast/js/resources/js-test-post.js"></script> | 75 <script src="../fast/js/resources/js-test-post.js"></script> | 
| 78 </body> | 76 </body> | 
| 79 </html> | 77 </html> | 
| OLD | NEW | 
|---|