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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/gesture-events-scrolled.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 body { 4 body {
5 height: 2000px; 5 height: 2000px;
6 } 6 }
7 #plugin { 7 #plugin {
8 position: absolute; 8 position: absolute;
9 top: 500px; 9 top: 500px;
10 width: 150px; 10 width: 150px;
11 height: 150px; 11 height: 150px;
12 } 12 }
13 </style> 13 </style>
14 </head> 14 </head>
15 15
16 <body> 16 <body>
17 <embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangl e" background-color="green" primitive-color="blue"></embed> 17 <embed id="plugin" type="application/x-webkit-test-webplugin" primitive="triangl e" background-color="green" primitive-color="blue"></embed>
18 <script> 18 <script>
19 19
20 if (!window.testRunner) { 20 if (!window.testRunner) {
21 document.write("This test does not work in manual mode."); 21 document.write("This test does not work in manual mode.");
22 } else { 22 } else {
23 testRunner.dumpAsText(); 23 testRunner.dumpAsText();
24 internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(); 24 internals.updateStyleAndLayoutIgnorePendingStylesheetsAndRunPostLayoutTa sks();
25 25
26 // Scroll so the plugin is 100px down the page 26 // Scroll so the plugin is 100px down the page
27 window.scroll(0, 400); 27 window.scroll(0, 400);
28 28
29 // These events should not reach the plugin since it's futher down on th e page. 29 // These events should not reach the plugin since it's futher down on th e page.
30 eventSender.gestureShowPress(30, 30); 30 eventSender.gestureShowPress(30, 30);
31 eventSender.gestureShowPress(30, 530); 31 eventSender.gestureShowPress(30, 530);
32 32
33 // Send some gesture events to the plugin. 33 // Send some gesture events to the plugin.
34 var positionX = 30; 34 var positionX = 30;
35 var positionY = 110; 35 var positionY = 110;
36 eventSender.gestureTap(positionX, positionY); 36 eventSender.gestureTap(positionX, positionY);
37 eventSender.gestureScrollBegin(positionX, positionY); 37 eventSender.gestureScrollBegin(positionX, positionY);
38 eventSender.gestureScrollUpdate(30, 0); 38 eventSender.gestureScrollUpdate(30, 0);
39 eventSender.gestureScrollUpdate(30, 0, true); 39 eventSender.gestureScrollUpdate(30, 0, true);
40 eventSender.gestureScrollEnd(0, 0); 40 eventSender.gestureScrollEnd(0, 0);
41 } 41 }
42 42
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698