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

Side by Side Diff: LayoutTests/fast/events/touch/layout-triggers.html

Issue 1148003010: Force layout for main thread scrolling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 years, 6 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 | LayoutTests/fast/events/touch/layout-triggers-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 #box { 3 #box {
4 position: absolute; 4 position: absolute;
5 } 5 }
6 </style> 6 </style>
7 <div id=box></div> 7 <div id=box></div>
8 <script src="../../../resources/js-test.js"></script> 8 <script src="../../../resources/js-test.js"></script>
9 <script> 9 <script>
10 description("Check which type of events trigger layout when it's dirty. Events that do a hit-test must update layout, but all other events shouldn't need to.") ; 10 description("Check which type of events trigger layout when it's dirty. Events that do a hit-test must update layout, but all other events shouldn't need to.") ;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 debug('Sending GestureScrollBegin'); 73 debug('Sending GestureScrollBegin');
74 triggeredLayout = triggersLayout(function() { 74 triggeredLayout = triggersLayout(function() {
75 eventSender.gestureScrollBegin(targetX, targetY); 75 eventSender.gestureScrollBegin(targetX, targetY);
76 }); 76 });
77 shouldBeTrue('triggeredLayout'); 77 shouldBeTrue('triggeredLayout');
78 78
79 debug('Sending GestureScrollUpdate'); 79 debug('Sending GestureScrollUpdate');
80 triggeredLayout = triggersLayout(function() { 80 triggeredLayout = triggersLayout(function() {
81 eventSender.gestureScrollUpdate(0, 5); 81 eventSender.gestureScrollUpdate(0, 5);
82 }); 82 });
83 shouldBeFalse('triggeredLayout'); 83 shouldBeTrue('triggeredLayout');
84 84
85 debug('Sending GestureScrollEnd'); 85 debug('Sending GestureScrollEnd');
86 triggeredLayout = triggersLayout(function() { 86 triggeredLayout = triggersLayout(function() {
87 eventSender.gestureScrollEnd(0, 5); 87 eventSender.gestureScrollEnd(0, 5);
88 }); 88 });
89 shouldBeFalse('triggeredLayout'); 89 shouldBeFalse('triggeredLayout');
90 90
91 finishJSTest(); 91 finishJSTest();
92 } 92 }
93 93
94 </script> 94 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/layout-triggers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698