| Index: LayoutTests/fast/frames/frame-focus-no-focusout-event.html
|
| diff --git a/LayoutTests/fast/frames/frame-focus-no-focusout-event.html b/LayoutTests/fast/frames/frame-focus-no-focusout-event.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d092557a6476ed3de139ceaa9043b1286ac6e206
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/frames/frame-focus-no-focusout-event.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<iframe></iframe>
|
| +<script>
|
| + var iframe = document.getElementsByTagName('iframe')[0];
|
| + var focusoutEventCount = 0;
|
| + iframe.contentDocument.documentElement.addEventListener('focusout', function () {
|
| + ++focusoutEventCount;
|
| + });
|
| +
|
| + test(function() {
|
| + iframe.contentDocument.documentElement.contentEditable = true;
|
| + iframe.contentDocument.documentElement.focus();
|
| + assert_equals(focusoutEventCount, 0);
|
| + }, "Test that calling focus() on an iframe does not cause a focusout event to be fired");
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|