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

Side by Side Diff: LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse.html

Issue 13888009: Mouse press should focus on any types of form controls. (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 <!DOCTYPE html>
2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script>
4 <script src="../resources/common.js"></script>
5
6 <input type="checkbox">
7
8 <script>
9 description('Clicking on a form control should focus on it.');
10 var target = document.getElementsByTagName('input')[0];
11 target.addEventListener('focus', function() { testPassed('Focus event was dispat ched.'); }, false);
12 clickElement(target);
13 target.remove();
14 </script>
15 <script src="../../js/resources/js-test-post.js"></script>
16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698