Chromium Code Reviews

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/hover-active-drag.html

Issue 2787943002: [WIP] Use the flat tree for hover handling.
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/hover-active-drag-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 div { background: rgb(0, 0, 0); } 3 div { background: rgb(0, 0, 0); }
4 div:hover { background: rgb(255, 0, 0); } 4 div:hover { background: rgb(255, 0, 0); }
5 div:hover:active { background: rgb(255, 255, 0); } 5 div:hover:active { background: rgb(255, 255, 0); }
6 div:active { background: rgb(0, 255, 0); } 6 div:active { background: rgb(0, 255, 0); }
7 div { 7 div {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 border: 2px solid rgb(0, 0, 255); 10 border: 2px solid rgb(0, 0, 255);
(...skipping 31 matching lines...)
42 shouldHaveBackground(box, 'rgb(255, 0, 0)') 42 shouldHaveBackground(box, 'rgb(255, 0, 0)')
43 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 43 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
44 44
45 eventSender.mouseDown() 45 eventSender.mouseDown()
46 shouldHaveBackground(box, 'rgb(255, 255, 0)') 46 shouldHaveBackground(box, 'rgb(255, 255, 0)')
47 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 47 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
48 48
49 // With the mouse still down, move into the second box. 49 // With the mouse still down, move into the second box.
50 eventSender.mouseMoveTo(50, 150) 50 eventSender.mouseMoveTo(50, 150)
51 shouldHaveBackground(box, 'rgb(0, 255, 0)') 51 shouldHaveBackground(box, 'rgb(0, 255, 0)')
52 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 52 shouldHaveBackground(box2, 'rgb(255, 0, 0)')
53 53
54 // Mouse still down, move outside of both boxes. 54 // Mouse still down, move outside of both boxes.
55 eventSender.mouseMoveTo(400, 50) 55 eventSender.mouseMoveTo(400, 50)
56 shouldHaveBackground(box, 'rgb(0, 255, 0)') 56 shouldHaveBackground(box, 'rgb(0, 255, 0)')
57 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 57 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
58 58
59 eventSender.mouseUp() 59 eventSender.mouseUp()
60 shouldHaveBackground(box, 'rgb(0, 0, 0)') 60 shouldHaveBackground(box, 'rgb(0, 0, 0)')
61 shouldHaveBackground(box2, 'rgb(0, 0, 0)') 61 shouldHaveBackground(box2, 'rgb(0, 0, 0)')
62 } 62 }
63 </script> 63 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/hover-active-drag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine