OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
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 width: 200px; | 8 width: 200px; |
9 height: 200px; | 9 height: 200px; |
10 position: relative; | 10 position: relative; |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 var touchtarget; | 27 var touchtarget; |
28 var expectedGesturesTotal = 2; | 28 var expectedGesturesTotal = 2; |
29 var gesturesOccurred = 0; | 29 var gesturesOccurred = 0; |
30 var scrollAmountX = ['0', '0']; | 30 var scrollAmountX = ['0', '0']; |
31 var scrollAmountY = ['140', '200']; | 31 var scrollAmountY = ['140', '200']; |
32 var wheelEventsOccurred = 0; | 32 var wheelEventsOccurred = 0; |
33 var expectedWheelEventsOccurred = ['0', '0']; | 33 var expectedWheelEventsOccurred = ['0', '0']; |
34 var scrollEventsOccurred = 0; | 34 var scrollEventsOccurred = 0; |
35 var expectedScrollEventsOccurred = '1'; | 35 var expectedScrollEventsOccurred = '1'; |
36 var scrolledElement = 'touchtarget.contentDocument.body' | 36 var scrolledElement = 'touchtarget.contentDocument.scrollingElement' |
37 | 37 |
38 function firstGestureScroll() | 38 function firstGestureScroll() |
39 { | 39 { |
40 debug("first gesture"); | 40 debug("first gesture"); |
41 eventSender.gestureScrollBegin(12, 150); | 41 eventSender.gestureScrollBegin(12, 150); |
42 eventSender.gestureScrollUpdate(0, -140); | 42 eventSender.gestureScrollUpdate(0, -140); |
43 eventSender.gestureScrollEnd(0, 0); | 43 eventSender.gestureScrollEnd(0, 0); |
44 | 44 |
45 // Wait for layout. | 45 // Wait for layout. |
46 checkScrollOffset(); | 46 checkScrollOffset(); |
(...skipping 26 matching lines...) Expand all Loading... |
73 firstGestureScroll(); | 73 firstGestureScroll(); |
74 else | 74 else |
75 exitIfNecessary(); | 75 exitIfNecessary(); |
76 } else { | 76 } else { |
77 debug("This test requires DumpRenderTree . Touch-scroll the red/green s
trip."); | 77 debug("This test requires DumpRenderTree . Touch-scroll the red/green s
trip."); |
78 } | 78 } |
79 } | 79 } |
80 </script> | 80 </script> |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |