Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: LayoutTests/fast/frames/frame-focus-no-focusout-event.html

Issue 284823005: Calling focus() on an iframe should not trigger a 'focusout' event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698