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

Side by Side Diff: LayoutTests/fast/events/hit-test-culled_inline.html

Issue 685963002: We need to account for culled inline parents of the hit-tested nodes.(Reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-culled_inline-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style type="text/css">
3 input, em { cursor: pointer; margin-right: 100px; }
4 label, span { cursor: pointer; background: transparent; }
5 </style>
6 <script src="../../resources/js-test.js"></script>
7 <div><label id="label" for="checkbox"><input id="checkbox" type="checkbox">Click the empty area on the left</input></label></div>
8 <div><span id="span"><em id="em">Click the empty area</em><em>in middle</em></sp an></div>
9 <p id="description"></p>
10 <div id="console"></div>
11 <script>
12 description('Click event should be fired when it occurs within culled inline .');
13
14 function hitTest(id) {
15 var element = document.getElementById(id);
16 var parent = element.parentElement;
17 x = element.offsetLeft + element.offsetWidth + 10;
18 y = element.offsetTop + element.offsetHeight / 2;
19 parent.addEventListener('click', function(e) {
20 debug(parent.nodeName + ' that is a parent of ' + element.nodeName + ' is clicked.');
Rick Byers 2014/11/11 17:19:16 Thanks for the refactor, but now we've lost the ex
21 e.preventDefault();
22 });
23 eventSender.mouseMoveTo(x, y);
24 eventSender.mouseDown();
25 eventSender.mouseUp();
26 }
27 if (window.eventSender) {
28 hitTest('checkbox');
Rick Byers 2014/11/11 17:19:16 you've also lost your test that verifies the check
29 hitTest('em');
30 }
31 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/hit-test-culled_inline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698