Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / selection-change-in-iframe-with-relative-parent.html
blob005519ac8487c5e6e08b8dcc525f8d2b638cbf1c
1 <!-- Based on fast/repaint/selection-change-in-iframe-with-relative-parent.html -->
2 <!DOCTYPE html>
3 <style>
4 .container {
5 position: relative;
6 top: 180px;
8 </style>
10 <!--
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.
15 -->
16 <div class="container">
17 <iframe src="../../../fast/repaint/resources/selection-change-in-iframe-with-relative-parent-iframe.html"></iframe>
18 </div>
20 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
21 <script>
22 if (window.testRunner)
23 testRunner.dumpAsTextWithPixelResults();
25 window.expectedPaintInvalidationObjects = [
26 "LayoutBlockFlow HTML",
27 "LayoutBlockFlow BODY",
28 "LayoutText #text",
29 "InlineTextBox 'Foo'",
30 "LayoutBR BR",
31 "InlineTextBox '\n'",
32 "LayoutBR BR",
33 "InlineTextBox '\n'",
34 "LayoutText #text",
35 "InlineTextBox 'Bar'",
36 "LayoutBR BR",
37 "InlineTextBox '\n'",
38 "LayoutBR BR",
39 "InlineTextBox '\n'",
40 "LayoutText #text",
41 "InlineTextBox 'Bazz'",
42 "LayoutBR BR",
43 "InlineTextBox '\n'",
45 function paintInvalidationTest()
47 var iframe = document.getElementsByTagName("iframe")[0];
48 iframe.contentWindow.getSelection().selectAllChildren(iframe.contentDocument.body);
50 window.addEventListener("load", runPaintInvalidationTest, false);
51 </script>