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

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

Issue 159933010: Remove everything region-specific from LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/helper.js"></script>
5 <style>
6 body { width: 600px; }
7
8 #footNote {
9 -webkit-flow-into: footNote;
10 display: block;
11 font-size: 13px;
12 }
13
14 #footNoteRegion { -webkit-flow-from: footNote; }
15 #content { -webkit-flow-into: content; }
16 #region { -webkit-flow-from: content; }
17 </style>
18 </head>
19 <body>
20
21 <div id="region"></div>
22 <div id="footNoteRegion"></div>
23 <div id="content">
24 <h1 style="margin-top: 0px">Selecting text through different CSS-Region flow s</h1>
25 <div id="contentText">
26 This text contains a footnote as a nested region what is diplayed below the article. (1) <span id="footNote">
27 <span><span></span>(1) This is a footnote. Footnotes can be quite long a nd go over several lines. This footnote
28 is nested inside the text above and displayed here with the help of css- regions.</span></span> If you start selecting
29 text from this article until somewhere in the footnote and then click so mewhere, the selection should be cleared.
30 </div>
31 </div>
32
33 <script>
34 if (window.testRunner) {
35 // We are positioning the mouse to the center of the contentText and start h olding the mouse down
36 var start = document.getElementById("contentText");
37 var xStartPosition = start.offsetLeft + 10;
38 var yStartPosition = start.offsetTop + start.offsetHeight / 2;
39 eventSender.mouseMoveTo(xStartPosition, yStartPosition);
40 eventSender.mouseDown();
41
42 // We are posotioning the mouse to the center of the footNote (what is a dif ferent region flow) and release the button
43 var end = document.getElementById("footNoteRegion");
44 var xEndPosition = end.offsetLeft + end.offsetWidth / 2;
45 var yEndPosition = end.offsetTop + end.offsetHeight / 2;
46 eventSender.mouseMoveTo(xEndPosition, yEndPosition);
47 eventSender.mouseUp();
48
49 // We are moving the mouse somewhere else and click to clear the selection
50 mouseClick(1, 1);
51 }
52 </script>
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698