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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/selection-clear-after-move.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 <script src="../../resources/run-after-layout-and-paint.js"></script> 2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script src="resources/text-based-repaint.js"></script> 3 <script src="resources/text-based-repaint.js"></script>
4 <script> 4 <script>
5 function repaintTest() { 5 function repaintTest() {
6 getSelection().removeAllRanges(); 6 getSelection().removeAllRanges();
7 } 7 }
8 onload = function() { 8 onload = function() {
9 getSelection().selectAllChildren(document.getElementById('div')); 9 getSelection().selectAllChildren(document.getElementById('div'));
10 runAfterLayoutAndPaint(function() { 10 runAfterLayoutAndPaint(function() {
11 document.getElementById('div').style.top = '300px'; 11 document.getElementById('div').style.top = '300px';
12 runRepaintTest(); 12 runRepaintAndPixelTest();
13 }); 13 });
14 }; 14 };
15 </script> 15 </script>
16 <style> 16 <style>
17 img { 17 img {
18 vertical-align: text-bottom; 18 vertical-align: text-bottom;
19 width: 50px; 19 width: 50px;
20 height: 50px; 20 height: 50px;
21 } 21 }
22 div { 22 div {
23 position: absolute; 23 position: absolute;
24 top: 100px; 24 top: 100px;
25 left: 100px; 25 left: 100px;
26 } 26 }
27 </style> 27 </style>
28 Tests paint invalidation of selection when its cleared after the container is mo ved.<br> 28 Tests paint invalidation of selection when its cleared after the container is mo ved.<br>
29 Passes if no selection left. 29 Passes if no selection left.
30 <div id="div"> 30 <div id="div">
31 <img></img> 31 <img></img>
32 </div> 32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698