| 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 <style type="text/css"> | 5 <style type="text/css"> |
| 6 ::-webkit-scrollbar { | 6 ::-webkit-scrollbar { |
| 7 background-color: #ccc; | 7 background-color: #ccc; |
| 8 height: 15px; | 8 height: 15px; |
| 9 width: 15px; | 9 width: 15px; |
| 10 } | 10 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Ensure we use a touch with an area to test under touch adjustment | 53 // Ensure we use a touch with an area to test under touch adjustment |
| 54 var touchWidth = 25; | 54 var touchWidth = 25; |
| 55 var touchHeight = 25; | 55 var touchHeight = 25; |
| 56 | 56 |
| 57 eventSender.gestureTapDown( | 57 eventSender.gestureTapDown( |
| 58 scrollbarX, scrollbarY, touchWidth, touchHeight); | 58 scrollbarX, scrollbarY, touchWidth, touchHeight); |
| 59 shouldBe('textArea.scrollTop', '0'); | 59 shouldBe('textArea.scrollTop', '0'); |
| 60 eventSender.gestureShowPress( | 60 eventSender.gestureShowPress( |
| 61 scrollbarX, scrollbarY, touchWidth, touchHeight); | 61 scrollbarX, scrollbarY, touchWidth, touchHeight); |
| 62 eventSender.gestureScrollBegin( | 62 eventSender.gestureScrollBegin( |
| 63 scrollbarX, scrollbarY, touchWidth, touchHeight); | 63 scrollbarX, scrollbarY); |
| 64 eventSender.gestureScrollUpdate(0, 20); | 64 eventSender.gestureScrollUpdate(0, 20); |
| 65 eventSender.gestureScrollEnd(0, 0); | 65 eventSender.gestureScrollEnd(0, 0); |
| 66 shouldBeGreaterThanOrEqual('textArea.scrollTop', '1'); | 66 shouldBeGreaterThanOrEqual('textArea.scrollTop', '1'); |
| 67 | 67 |
| 68 // If we've got here, we've passed. | 68 // If we've got here, we've passed. |
| 69 isSuccessfullyParsed(); | 69 isSuccessfullyParsed(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 function exitIfNecessary() | 72 function exitIfNecessary() |
| 73 { | 73 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 88 verticalScrollTest(); | 88 verticalScrollTest(); |
| 89 else | 89 else |
| 90 exitIfNecessary(); | 90 exitIfNecessary(); |
| 91 } else { | 91 } else { |
| 92 debug("This test requires DumpRenderTree."); | 92 debug("This test requires DumpRenderTree."); |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 </script> | 95 </script> |
| 96 </body> | 96 </body> |
| 97 </html> | 97 </html> |
| OLD | NEW |