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