OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script> | 3 <script> |
4 enablePixelTesting = true; | 4 enablePixelTesting = true; |
5 </script> | 5 </script> |
6 <script src="../../js/resources/js-test-pre.js"></script> | 6 <script src="../../../resources/js-test.js"></script> |
7 <script src="../resources/common.js"></script> | 7 <script src="../resources/common.js"></script> |
8 | 8 |
9 <input type="radio"> | 9 <input type="radio"> |
10 <div id="console"></div> | 10 <div id="console"></div> |
11 <script> | 11 <script> |
12 eventSender.mouseMoveTo(800, 600); | 12 eventSender.mouseMoveTo(800, 600); |
13 description('Clicking on a form control should focus on it.'); | 13 description('Clicking on a form control should focus on it.'); |
14 var target = document.querySelector('input'); | 14 var target = document.querySelector('input'); |
15 target.addEventListener('focus', function() { | 15 target.addEventListener('focus', function() { |
16 testPassed('Focus event was dispatched.'); | 16 testPassed('Focus event was dispatched.'); |
17 }, false); | 17 }, false); |
18 clickElement(target); | 18 clickElement(target); |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
OLD | NEW |