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

Side by Side Diff: LayoutTests/touchadjustment/zoom-basic.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../fast/js/resources/js-test-pre.js"></script> 3 <script src="../fast/js/resources/js-test-pre.js"></script>
4 <style> 4 <style>
5 #div0 { position: absolute; left: 50px; top: 50px; width: 300px; height: 300px; box-sizing: border-box; } 5 #div0 { position: absolute; left: 50px; top: 50px; width: 300px; height: 300px; box-sizing: border-box; }
6 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height: 100px; box-sizing: border-box; } 6 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height: 100px; box-sizing: border-box; }
7 #div2 { position: absolute; left: 50px; top: 150px; width: 200px; height : 100px; padding: 10px; box-sizing: border-box; } 7 #div2 { position: absolute; left: 50px; top: 150px; width: 200px; height : 100px; padding: 10px; box-sizing: border-box; }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body onload="runTests()"> 10 <body onload="runTests()">
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 shouldEvaluateTo('zoomableArea.width', 300); 54 shouldEvaluateTo('zoomableArea.width', 300);
55 shouldEvaluateTo('zoomableArea.height',300); 55 shouldEvaluateTo('zoomableArea.height',300);
56 } 56 }
57 57
58 function runTests() 58 function runTests()
59 { 59 {
60 if (window.testRunner && window.internals && internals.bestZoomableAreaF orTouchPoint) { 60 if (window.testRunner && window.internals && internals.bestZoomableAreaF orTouchPoint) {
61 description('Test basic cases of tap-to-zoom mechanics.'); 61 description('Test basic cases of tap-to-zoom mechanics.');
62 testRunner.dumpAsText(); 62 testRunner.dumpAsText();
63 testRunner.waitUntilDone(); 63 testRunner.waitUntilDone();
64 // Mouse events only work after an initial layout
65 document.body.offsetLeft;
66 testDirectTouches(); 64 testDirectTouches();
67 isSuccessfullyParsed(); 65 isSuccessfullyParsed();
68 testRunner.notifyDone(); 66 testRunner.notifyDone();
69 } 67 }
70 } 68 }
71 </script> 69 </script>
72 </body> 70 </body>
73 </html> 71 </html>
OLDNEW
« no previous file with comments | « LayoutTests/touchadjustment/touch-inlines.html ('k') | LayoutTests/touchadjustment/zoom-fatfinger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698