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

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

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <!-- Based on fast/repaint/image-resize.html --> 1 <!-- Based on fast/repaint/image-resize.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script> 3 <script src="resources/paint-invalidation-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 window.expectedPaintInvalidationObjects = [
8 "LayoutImage (positioned) IMG",
9 ];
10 function paintInvalidationTest() { 5 function paintInvalidationTest() {
11 var img = document.getElementsByTagName('img')[0]; 6 var img = document.getElementsByTagName('img')[0];
12 img.style.width = '100px'; 7 img.style.width = '100px';
13 img.style.height = '200px'; 8 img.style.height = '200px';
14 } 9 }
15 onload = runPaintInvalidationTest; 10 onload = runPaintInvalidationTest;
16 </script> 11 </script>
17 <style> 12 <style>
18 img { 13 img {
19 position: absolute; 14 position: absolute;
20 top: 50px; 15 top: 50px;
21 left: 0px; 16 left: 0px;
22 width: 150px; 17 width: 150px;
23 height: 150px; 18 height: 150px;
24 } 19 }
25 </style> 20 </style>
26 The image should be fully repainted on resize. Passes if there is a whole apple after resize. 21 The image should be fully repainted on resize. Passes if there is a whole apple after resize.
27 <img src="../../../fast/repaint/resources/apple.jpg"> 22 <img src="../../../fast/repaint/resources/apple.jpg">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698