OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <iframe></iframe> |
| 7 <script> |
| 8 var iframe = document.getElementsByTagName('iframe')[0]; |
| 9 var focusoutEventCount = 0; |
| 10 iframe.contentDocument.documentElement.addEventListener('focusout', function (
) { |
| 11 ++focusoutEventCount; |
| 12 }); |
| 13 |
| 14 test(function() { |
| 15 iframe.contentDocument.documentElement.contentEditable = true; |
| 16 iframe.contentDocument.documentElement.focus(); |
| 17 assert_equals(focusoutEventCount, 0); |
| 18 }, "Test that calling focus() on an iframe does not cause a focusout event to
be fired"); |
| 19 </script> |
| 20 </body> |
| 21 </html> |
OLD | NEW |