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

Side by Side Diff: LayoutTests/platform/chromium/plugins/touch-events-details.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 #plugin {
5 width: 150px;
6 height: 150px;
7 }
8 </style>
9 </head>
10
11 <body>
12 <embed id="plugin" type="application/x-webkit-test-webplugin" accepts-touch="raw " print-event-details="true"></embed>
13 <script>
14
15 if (!window.testRunner || !window.eventSender) {
16 document.write("This test does not work in manual mode.");
17 } else {
18 testRunner.dumpAsText();
19
20 var positionX = plugin.offsetLeft + 10;
21 var positionY = plugin.offsetTop + 10;
22 eventSender.addTouchPoint(positionX, positionY);
23 eventSender.touchStart();
24 eventSender.updateTouchPoint(0, positionX + 10, positionY + 5);
25 eventSender.touchMove();
26 eventSender.releaseTouchPoint(0);
27 eventSender.touchEnd();
28 }
29
30 </script>
31 </body>
32 </html>
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698