| Index: LayoutTests/fast/events/focus-querySelector-in-focus-event-handler.html
|
| diff --git a/LayoutTests/fast/events/focus-querySelector-in-focus-event-handler.html b/LayoutTests/fast/events/focus-querySelector-in-focus-event-handler.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5b246d64196998d843e2b361bb20ce81c01215e6
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/events/focus-querySelector-in-focus-event-handler.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<input type="text">
|
| +<script>
|
| +var input = document.querySelector('input');
|
| +input.addEventListener('focus', function(e) {
|
| + var focused = document.querySelector(':focus');
|
| + if (e.target === focused) {
|
| + testPassed(":focus matches event.target");
|
| + } else {
|
| + testFailed(":focus doesn't match event.target");
|
| + }
|
| +}, false);
|
| +input.focus();
|
| +</script>
|
|
|