Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-focus-no-focusout-event.html
blobd092557a6476ed3de139ceaa9043b1286ac6e206
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 });
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>