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

Side by Side Diff: LayoutTests/fast/regions/selection/selecting-text-through-different-region-flows.html

Issue 25761004: [CSS Regions] Helper functions for selection layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/helper.js"></script>
4 <style> 5 <style>
5 body { width: 600px; } 6 body { width: 600px; }
6 7
7 #footNote { 8 #footNote {
8 -webkit-flow-into: footNote; 9 -webkit-flow-into: footNote;
9 display: block; 10 display: block;
10 font-size: 13px; 11 font-size: 13px;
11 } 12 }
12 13
13 #footNoteRegion { -webkit-flow-from: footNote; } 14 #footNoteRegion { -webkit-flow-from: footNote; }
(...skipping 25 matching lines...) Expand all
39 eventSender.mouseDown(); 40 eventSender.mouseDown();
40 41
41 // We are posotioning the mouse to the center of the footNote (what is a dif ferent region flow) and release the button 42 // We are posotioning the mouse to the center of the footNote (what is a dif ferent region flow) and release the button
42 var end = document.getElementById("footNoteRegion"); 43 var end = document.getElementById("footNoteRegion");
43 var xEndPosition = end.offsetLeft + end.offsetWidth / 2; 44 var xEndPosition = end.offsetLeft + end.offsetWidth / 2;
44 var yEndPosition = end.offsetTop + end.offsetHeight / 2; 45 var yEndPosition = end.offsetTop + end.offsetHeight / 2;
45 eventSender.mouseMoveTo(xEndPosition, yEndPosition); 46 eventSender.mouseMoveTo(xEndPosition, yEndPosition);
46 eventSender.mouseUp(); 47 eventSender.mouseUp();
47 48
48 // We are moving the mouse somewhere else and click to clear the selection 49 // We are moving the mouse somewhere else and click to clear the selection
49 eventSender.mouseMoveTo(1, 1); 50 mouseClick(1, 1);
50 eventSender.mouseDown();
51 eventSender.mouseUp();
52 } 51 }
53 </script> 52 </script>
54 </body> 53 </body>
55 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698