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

Side by Side Diff: LayoutTests/plugins/user-gesture.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <embed id="plugin" type="application/x-webkit-test-webplugin" accepts-touch="raw " print-user-gesture-status="true" width="100" height="100"></embed> 4 <embed id="plugin" type="application/x-webkit-test-webplugin" accepts-touch="raw " print-user-gesture-status="true" width="100" height="100"></embed>
5 <p> 5 <p>
6 Test that the user gesture indicator is correctly set for events forwarded 6 Test that the user gesture indicator is correctly set for events forwarded
7 through the WebPluginContainer. The tests succeeds if the first 7 through the WebPluginContainer. The tests succeeds if the first
8 mousedown/mouseup event pair is a user gesture, and the second is not. 8 mousedown/mouseup event pair is a user gesture, and the second is not.
9 </p> 9 </p>
10 <script> 10 <script>
(...skipping 13 matching lines...) Expand all
24 evt.initMouseEvent("mousedown", true, true, window, 1, 20, 20, 20, 20, f alse, false, false, false, 0, null); 24 evt.initMouseEvent("mousedown", true, true, window, 1, 20, 20, 20, 20, f alse, false, false, false, 0, null);
25 plugin.dispatchEvent(evt); 25 plugin.dispatchEvent(evt);
26 26
27 evt = document.createEvent("MouseEvent"); 27 evt = document.createEvent("MouseEvent");
28 evt.initMouseEvent("mouseup", true, true, window, 1, 20, 20, 20, 20, fal se, false, false, false, 0, null); 28 evt.initMouseEvent("mouseup", true, true, window, 1, 20, 20, 20, 20, fal se, false, false, false, 0, null);
29 plugin.dispatchEvent(evt); 29 plugin.dispatchEvent(evt);
30 } 30 }
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/plugins/transformed-events-expected.txt ('k') | LayoutTests/plugins/user-gesture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698