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

Side by Side Diff: LayoutTests/fast/scroll-behavior/overflow-scroll-triggers-layout.html

Issue 1220783002: Fix flaky test ensuring scrolling triggers layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | 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 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <style> 3 <style>
4 #inner { 4 #inner {
5 background:red; 5 background:red;
6 width:500px; 6 width:500px;
7 height:100%; 7 height:100%;
8 } 8 }
9 9
10 #outer { 10 #outer {
11 width:300px; 11 width:300px;
12 height:500px; 12 height:500px;
13 overflow-y:scroll; 13 overflow-y:scroll;
14 overflow-x:hidden; 14 overflow-x:hidden;
15 } 15 }
16 </style> 16 </style>
17 <div id="outer"> 17 <div id="outer">
18 <div id="inner"> 18 <div id="inner">
19 </div> 19 </div>
20 </div> 20 </div>
21 21
22 <script> 22 <script>
23 description("Ensures that if layout is dirty, triggering a scroll causes a relay out"); 23 description("Ensures that if layout is dirty, triggering a scroll causes a relay out");
24 internals.settings.setScrollAnimatorEnabled(false);
24 25
25 outer.addEventListener("wheel", 26 outer.addEventListener("wheel",
26 function(e) { 27 function(e) {
27 inner.style.height = "1000px"; 28 inner.style.height = "1000px";
28 } 29 }
29 ); 30 );
30 31
31 var x = outer.offsetLeft + 5; 32 var x = outer.offsetLeft + 5;
32 var y = outer.offsetTop + 5; 33 var y = outer.offsetTop + 5;
33 eventSender.mouseMoveTo(x, y); 34 eventSender.mouseMoveTo(x, y);
34 eventSender.mouseScrollBy(0, -1); 35 eventSender.mouseScrollBy(0, -1);
35 shouldBeGreaterThan("outer.scrollTop", "0"); 36 shouldBeGreaterThan("outer.scrollTop", "0");
36 37
37 </script> 38 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698