1 <!-- Based on fast/repaint/selection-change-in-iframe-with-relative-parent.html -->
11 This test checks that the selection in an iframe in a relative positioned container
12 is correctly invalidated.
13 We should be able to manually select all the text. The invalidation rects should
14 be positioned correctly and encompass all the lines.
16 <div class=
"container">
17 <iframe src=
"../../../fast/repaint/resources/selection-change-in-iframe-with-relative-parent-iframe.html"></iframe>
20 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
22 if (window
.testRunner
)
23 testRunner
.dumpAsTextWithPixelResults();
25 window
.expectedPaintInvalidationObjects
= [
26 "LayoutBlockFlow HTML",
27 "LayoutBlockFlow BODY",
29 "InlineTextBox 'Foo'",
35 "InlineTextBox 'Bar'",
41 "InlineTextBox 'Bazz'",
45 function paintInvalidationTest()
47 var iframe
= document
.getElementsByTagName("iframe")[0];
48 iframe
.contentWindow
.getSelection().selectAllChildren(iframe
.contentDocument
.body
);
50 window
.addEventListener("load", runPaintInvalidationTest
, false);