| <!DOCTYPE html> |
| <body> |
| <script> |
| enablePixelTesting = true; |
| </script> |
| <script src="../../../resources/js-test.js"></script> |
| <script src="../resources/common.js"></script> |
| |
| <button type="reset">Reset</button> |
| <div id="console"></div> |
| |
| <script> |
| eventSender.mouseMoveTo(800, 600); |
| description('Clicking on a form control should focus on it.'); |
| var target = document.querySelector('button'); |
| target.addEventListener('focus', function() { |
| testPassed('Focus event was dispatched.'); |
| }, false); |
| clickElement(target); |
| </script> |
| </body> |