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

Side by Side Diff: LayoutTests/fast/events/clientXY-in-zoom-and-scroll.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 <script src="../js/resources/js-test-pre.js"></script> 1 <script src="../js/resources/js-test-pre.js"></script>
2 <style> 2 <style>
3 #pusher { 3 #pusher {
4 width: 1000px; 4 width: 1000px;
5 height: 1000px; 5 height: 1000px;
6 outline: 1px solid black; 6 outline: 1px solid black;
7 } 7 }
8 </style> 8 </style>
9 <div id="console"></div> 9 <div id="console"></div>
10 <div id="testArea"> 10 <div id="testArea">
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 function scrollPage(x, y) 39 function scrollPage(x, y)
40 { 40 {
41 window.scrollTo(x, y); 41 window.scrollTo(x, y);
42 } 42 }
43 43
44 if (window.testRunner) { 44 if (window.testRunner) {
45 testRunner.dumpAsText(); 45 testRunner.dumpAsText();
46 testRunner.waitUntilDone(); 46 testRunner.waitUntilDone();
47 // Mouse events only work after an initial layout
48 document.body.offsetLeft;
49 } 47 }
50 48
51 // Default. 49 // Default.
52 function base(e) 50 function base(e)
53 { 51 {
54 event = e; 52 event = e;
55 debug("Base"); 53 debug("Base");
56 shouldBe("event.clientX", "100"); 54 shouldBe("event.clientX", "100");
57 shouldBe("event.clientY", "100"); 55 shouldBe("event.clientY", "100");
58 shouldBe("event.pageX", "100"); 56 shouldBe("event.pageX", "100");
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 window.removeEventListener("click", zoomedAndScrolled, false); 111 window.removeEventListener("click", zoomedAndScrolled, false);
114 112
115 if (window.testRunner) { 113 if (window.testRunner) {
116 var area = document.getElementById('testArea'); 114 var area = document.getElementById('testArea');
117 area.parentNode.removeChild(area); 115 area.parentNode.removeChild(area);
118 116
119 testRunner.notifyDone(); 117 testRunner.notifyDone();
120 } 118 }
121 </script> 119 </script>
122 <script src="../js/resources/js-test-post.js"></script> 120 <script src="../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/capture-on-target.html ('k') | LayoutTests/fast/events/dblclick-addEventListener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698