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

Side by Side Diff: LayoutTests/platform/chromium/plugins/gesture-events-scrolled.html

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

Powered by Google App Engine
This is Rietveld 408576698