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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/image-resize.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 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/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 var img = document.getElementsByTagName('img')[0]; 5 var img = document.getElementsByTagName('img')[0];
6 img.style.width = '100px'; 6 img.style.width = '100px';
7 img.style.height = '200px'; 7 img.style.height = '200px';
8 } 8 }
9 onload = runRepaintAndPixelTest; 9 onload = runRepaintAndPixelTest;
10 </script> 10 </script>
11 <style> 11 <style>
12 img { 12 img {
13 position: absolute; 13 position: absolute;
14 top: 50px; 14 top: 50px;
15 left: 0px; 15 left: 0px;
16 width: 150px; 16 width: 150px;
17 height: 150px; 17 height: 150px;
18 } 18 }
19 </style> 19 </style>
20 The image should be fully repainted on resize. Passes if there is a whole apple after resize. 20 The image should be fully repainted on resize. Passes if there is a whole apple after resize.
21 <img src="resources/apple.jpg"> 21 <img src="resources/apple.jpg">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698