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

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) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 window.expectedPaintInvalidationObjects = [
8 "LayoutImage (positioned) IMG",
9 ];
10 function paintInvalidationTest() { 7 function paintInvalidationTest() {
11 var img = document.getElementsByTagName('img')[0]; 8 var img = document.getElementsByTagName('img')[0];
12 img.style.width = '100px'; 9 img.style.width = '100px';
13 img.style.height = '200px'; 10 img.style.height = '200px';
14 } 11 }
15 onload = runPaintInvalidationTest; 12 onload = runPaintInvalidationTest;
16 </script> 13 </script>
17 <style> 14 <style>
18 img { 15 img {
19 position: absolute; 16 position: absolute;
20 top: 50px; 17 top: 50px;
21 left: 0px; 18 left: 0px;
22 width: 150px; 19 width: 150px;
23 height: 150px; 20 height: 150px;
24 } 21 }
25 </style> 22 </style>
26 The image should be fully repainted on resize. Passes if there is a whole apple after resize. 23 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"> 24 <img src="../../../fast/repaint/resources/apple.jpg">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698