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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/selection-change-in-iframe-with-relative-parent.html

Issue 1988313004: Test pixel results for repaint tests testing selection, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .container { 3 .container {
4 position: relative; 4 position: relative;
5 top: 180px; 5 top: 180px;
6 } 6 }
7 </style> 7 </style>
8 8
9 <!-- 9 <!--
10 This test checks that the selection in an iframe in a relative positioned co ntainer 10 This test checks that the selection in an iframe in a relative positioned co ntainer
11 is correctly invalidated. 11 is correctly invalidated.
12 We should be able to manually select all the text. The invalidation rects sh ould 12 We should be able to manually select all the text. The invalidation rects sh ould
13 be positioned correctly and encompass all the lines. 13 be positioned correctly and encompass all the lines.
14 --> 14 -->
15 <div class="container"> 15 <div class="container">
16 <iframe src="resources/selection-change-in-iframe-with-relative-parent-ifram e.html"></iframe> 16 <iframe src="resources/selection-change-in-iframe-with-relative-parent-ifram e.html"></iframe>
17 </div> 17 </div>
18 18
19 <script src="resources/text-based-repaint.js" type="text/javascript"></script> 19 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
20 <script> 20 <script>
21 function repaintTest() 21 function repaintTest()
22 { 22 {
23 var iframe = document.getElementsByTagName("iframe")[0]; 23 var iframe = document.getElementsByTagName("iframe")[0];
24 iframe.contentWindow.getSelection().selectAllChildren(iframe.contentDocument .body); 24 iframe.contentWindow.getSelection().selectAllChildren(iframe.contentDocument .body);
25 } 25 }
26 window.addEventListener("load", runRepaintTest, false); 26 window.addEventListener("load", runRepaintAndPixelTest, false);
27 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698