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 = ['0', '0']; | 31 var scrollAmountY = ['0', '0']; |
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 = '0'; | 35 var expectedScrollEventsOccurred = '0'; |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 successfullyParsed = true; | 91 successfullyParsed = true; |
92 isSuccessfullyParsed(); | 92 isSuccessfullyParsed(); |
93 if (window.testRunner) | 93 if (window.testRunner) |
94 testRunner.notifyDone(); | 94 testRunner.notifyDone(); |
95 } | 95 } |
96 } | 96 } |
97 } | 97 } |
98 </script> | 98 </script> |
99 </body> | 99 </body> |
100 </html> | 100 </html> |
OLD | NEW |