2 <script src=
"../../resources/js-test.js"></script>
5 var input
= document
.querySelector('input');
6 input
.addEventListener('focus', function(e
) {
7 var focused
= document
.querySelector(':focus');
8 if (e
.target
=== focused
) {
9 testPassed(":focus matches event.target");
11 testFailed(":focus doesn't match event.target");