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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/repaint/repaint-in-scrolled-view.html

Issue 1992303002: Test pixel results for repaint tests changing scroll (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
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/selection/selection-within-composited-scroller.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementById("rect").setAttribute('fill', 'green'); 5 document.getElementById("rect").setAttribute('fill', 'green');
6 } 6 }
7 onload = function() { 7 onload = function() {
8 window.scrollTo(400, 400); 8 window.scrollTo(400, 400);
9 runRepaintTest(); 9 runRepaintAndPixelTest();
10 } 10 }
11 </script> 11 </script>
12 <style> 12 <style>
13 div { 13 div {
14 position: absolute; 14 position: absolute;
15 top: 400px; 15 top: 400px;
16 left: 400px; 16 left: 400px;
17 width:100px; 17 width:100px;
18 height:100px; 18 height:100px;
19 } 19 }
20 body { 20 body {
21 margin: 0; 21 margin: 0;
22 width: 2000px; 22 width: 2000px;
23 height: 2000px; 23 height: 2000px;
24 } 24 }
25 </style> 25 </style>
26 Tests if svg is correctly repainted in a scrolled view. The result repaint rects should contain (400, 400, 100, 100) only. 26 Tests if svg is correctly repainted in a scrolled view. The result repaint rects should contain (400, 400, 100, 100) only.
27 <div> 27 <div>
28 <svg id="svg" height="100" width="100" viewbox="0 0 100 100"> 28 <svg id="svg" height="100" width="100" viewbox="0 0 100 100">
29 <rect id="rect" width="100" height="100" fill="red"/> 29 <rect id="rect" width="100" height="100" fill="red"/>
30 </svg> 30 </svg>
31 </div> 31 </div>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/paint/selection/selection-within-composited-scroller.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698