OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../../resources/js-test.js"></script> | 4 <script src="../../../../resources/js-test.js"></script> |
5 <script src="resources/gesture-helpers.js"></script> | 5 <script src="resources/gesture-helpers.js"></script> |
6 <style type="text/css"> | 6 <style type="text/css"> |
7 #touchtarget { | 7 #touchtarget { |
8 background: white; | 8 background: white; |
9 } | 9 } |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 var touchtarget; | 34 var touchtarget; |
35 var expectedGesturesTotal = 2; | 35 var expectedGesturesTotal = 2; |
36 var gesturesOccurred = 0; | 36 var gesturesOccurred = 0; |
37 var scrollAmountX = ['0', '0']; | 37 var scrollAmountX = ['0', '0']; |
38 var scrollAmountY = ['140', '200']; | 38 var scrollAmountY = ['140', '200']; |
39 var wheelEventsOccurred = 0; | 39 var wheelEventsOccurred = 0; |
40 var expectedWheelEventsOccurred = ['0', '0']; | 40 var expectedWheelEventsOccurred = ['0', '0']; |
41 var scrollEventsOccurred = 0; | 41 var scrollEventsOccurred = 0; |
42 var expectedScrollEventsOccurred = '1'; | 42 var expectedScrollEventsOccurred = '1'; |
43 var scrolledElement = 'touchtarget.contentDocument.documentElement' | 43 var scrolledElement = 'touchtarget.contentDocument.body' |
44 | 44 |
45 function firstGestureScroll() | 45 function firstGestureScroll() |
46 { | 46 { |
47 debug("first gesture"); | 47 debug("first gesture"); |
48 eventSender.gestureScrollBegin(12, 150); | 48 eventSender.gestureScrollBegin(12, 150); |
49 eventSender.gestureScrollUpdate(0, -140); | 49 eventSender.gestureScrollUpdate(0, -140); |
50 eventSender.gestureScrollEnd(0, 0); | 50 eventSender.gestureScrollEnd(0, 0); |
51 | 51 |
52 // Wait for layout. | 52 // Wait for layout. |
53 checkScrollOffset(); | 53 checkScrollOffset(); |
(...skipping 26 matching lines...) Expand all Loading... |
80 firstGestureScroll(); | 80 firstGestureScroll(); |
81 else | 81 else |
82 exitIfNecessary(); | 82 exitIfNecessary(); |
83 } else { | 83 } else { |
84 debug("This test requires DumpRenderTree. Touch-scroll the red/green st
rip."); | 84 debug("This test requires DumpRenderTree. Touch-scroll the red/green st
rip."); |
85 } | 85 } |
86 } | 86 } |
87 </script> | 87 </script> |
88 </body> | 88 </body> |
89 </html> | 89 </html> |
OLD | NEW |