3 <iframe id=
"firstFrame">
5 <iframe id=
"secondFrame">
8 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
10 window
.jsTestIsAsync
= true;
12 var firstFrame
= document
.getElementById('firstFrame');
13 firstFrame
.contentDocument
.documentElement
.contentEditable
= true;
15 var secondFrame
= document
.getElementById('secondFrame');
16 secondFrame
.contentDocument
.documentElement
.contentEditable
= true;
18 firstFrame
.contentDocument
.documentElement
.onfocus
= focusSecondFrameAfterPaint
;
19 firstFrame
.contentDocument
.documentElement
.focus();
21 if (window
.testRunner
)
22 testRunner
.waitUntilDone();
24 function focusSecondFrameAfterPaint() {
25 runAfterLayoutAndPaint(focusSecondFrame
);
28 function focusSecondFrame() {
29 secondFrame
.contentDocument
.documentElement
.focus();
30 if (window
.testRunner
)
31 testRunner
.notifyDone();