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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/gesture-scroll-object-crash.html

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/gesture-scroll-object-crash-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 #spacer { 3 #spacer {
4 height: 1000px; 4 height: 1000px;
5 } 5 }
6 #target { 6 #target {
7 width: 50px; 7 width: 50px;
8 height: 50px; 8 height: 50px;
9 } 9 }
10 </style> 10 </style>
11 <object id=target></object> 11 <object id=target></object>
12 <div id=spacer></div> 12 <div id=spacer></div>
13 <script src="../../../../resources/js-test.js"></script> 13 <script src="../../../../resources/js-test.js"></script>
14 <script> 14 <script>
15 description("Verifies that scrolling on top of a RenderPart with null widget wor ks and doesn't crash."); 15 description("Verifies that scrolling on top of a LayoutPart with null widget wor ks and doesn't crash.");
16 16
17 var sentEvents = false; 17 var sentEvents = false;
18 18
19 onload = function() { 19 onload = function() {
20 var target = document.getElementById('target'); 20 var target = document.getElementById('target');
21 var rect = target.getBoundingClientRect(); 21 var rect = target.getBoundingClientRect();
22 var targetX = rect.left + rect.width / 2; 22 var targetX = rect.left + rect.width / 2;
23 var targetY = rect.top + rect.height / 2; 23 var targetY = rect.top + rect.height / 2;
24 eventSender.gestureScrollBegin(targetX, targetY); 24 eventSender.gestureScrollBegin(targetX, targetY);
25 eventSender.gestureScrollUpdate(0, -20); 25 eventSender.gestureScrollUpdate(0, -20);
26 eventSender.gestureScrollEnd(0,0); 26 eventSender.gestureScrollEnd(0,0);
27 sentEvents = true; 27 sentEvents = true;
28 } 28 }
29 29
30 window.addEventListener('scroll', function(e) { 30 window.addEventListener('scroll', function(e) {
31 shouldBeTrue('sentEvents'); 31 shouldBeTrue('sentEvents');
32 setTimeout(finishJSTest, 0); 32 setTimeout(finishJSTest, 0);
33 }); 33 });
34 34
35 jsTestIsAsync = true; 35 jsTestIsAsync = true;
36 </script> 36 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/gesture/gesture-scroll-object-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698