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

Side by Side Diff: LayoutTests/fast/regions/drag-scrollbars-of-content.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 <title>drag the scrollbars of content flowed in regions</title>
5 <style>
6 .content {
7 width: 100px;
8 height: 100px;
9 overflow-y: scroll;
10 overflow-x: none;
11 font-size: 20px;
12 line-height: 1em;
13 padding: 0.5em;
14 border: solid 1px #888;
15 -webkit-flow-into: f;
16 }
17 #region {
18 width: 200px;
19 height: 200px;
20 margin: 20px;
21 background-color: rgb(241, 241, 241);
22 -webkit-flow-from: f;
23 }
24 </style>
25 <script>
26 function myOnLoad() {
27 if(!window.testRunner)
28 return;
29 var scrollable = document.querySelector('.conten t');
30 var scrollBox = scrollable.getBoundingClientRect ();
31 var X = scrollBox.right - 3;
32 var Y = scrollBox.bottom - 3;
33
34 eventSender.mouseMoveTo(X, Y);
35 eventSender.mouseDown();
36 eventSender.mouseUp();
37 }
38 </script>
39 </head>
40 <body onload="myOnLoad();">
41 <div class="content">1xxxxx<br>2xxxxx<br>3xxxxx<br>4xxxxx<br>5xx xxx<br>6xxxxx<br>7xxxxx<br>8xxxxx</div>
42 <div id="region"></div>
43 <div>You should be able to drag the scrollbars</div>
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698