Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scrollbar-textarea.html

Issue 2925883003: [Touch Adjustment] Pass primary_pointer_type to WebGestureEvent and disable adjustment for stylus (Closed)
Patch Set: jochen and dtapuska's comments: Add default value Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698