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

Side by Side Diff: LayoutTests/touchadjustment/block-testing.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
« no previous file with comments | « LayoutTests/svg/custom/viewBox-hit.svg ('k') | LayoutTests/touchadjustment/context-menu.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Touch Adjustment: bug 82044</title> 4 <title>Touch Adjustment: bug 82044</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; left: 0px; top: 0px; width: 400px; height : 200px; } 8 #sandbox { position: absolute; left: 0px; top: 0px; width: 400px; height : 200px; }
9 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height: 50px;} 9 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height: 50px;}
10 #div2 { position: absolute; left: 50px; top: 100px; width: 200px; height : 50px;} 10 #div2 { position: absolute; left: 50px; top: 100px; width: 200px; height : 50px;}
(...skipping 19 matching lines...) Expand all
30 30
31 function testDirectTouches() 31 function testDirectTouches()
32 { 32 {
33 testTouchPoint(touchPoint(200, 90, 200), document.getElementById('di v1')); 33 testTouchPoint(touchPoint(200, 90, 200), document.getElementById('di v1'));
34 34
35 } 35 }
36 function runTests() 36 function runTests()
37 { 37 {
38 if (window.testRunner && window.internals && internals.touchNodeAdju stedToBestClickableNode) { 38 if (window.testRunner && window.internals && internals.touchNodeAdju stedToBestClickableNode) {
39 description('Test touch-adjustment on a block where we also touc h the inner text and outside link.'); 39 description('Test touch-adjustment on a block where we also touc h the inner text and outside link.');
40 // Mouse events only work after an initial layout
41 document.body.offsetLeft;
42 testDirectTouches(); 40 testDirectTouches();
43 document.getElementById('sandbox').style.display = 'none'; 41 document.getElementById('sandbox').style.display = 'none';
44 } 42 }
45 } 43 }
46 runTests(); 44 runTests();
47 </script> 45 </script>
48 <script src="../fast/js/resources/js-test-post.js"></script> 46 <script src="../fast/js/resources/js-test-post.js"></script>
49 </body> 47 </body>
50 </html> 48 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/viewBox-hit.svg ('k') | LayoutTests/touchadjustment/context-menu.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698