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

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

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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>
4 enablePixelTesting = true;
5 </script>
6 <script src="../../js/resources/js-test-pre.js"></script>
7 <script src="../resources/common.js"></script>
8
9 <input type="radio">
10 <div id="console"></div>
11 <script>
12 eventSender.mouseMoveTo(800, 600);
13 description('Clicking on a form control should focus on it.');
14 var target = document.querySelector('input');
15 target.addEventListener('focus', function() {
16 testPassed('Focus event was dispatched.');
17 }, false);
18 clickElement(target);
19 </script>
20 <script src="../../js/resources/js-test-post.js"></script>
21 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698