Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: LayoutTests/touchadjustment/touch-inlines.html

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/touchadjustment/rotated-node.html ('k') | LayoutTests/touchadjustment/zoom-basic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698