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

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

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!-- Based on fast/repaint/image-resize.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 window.expectedPaintInvalidationObjects = [
8 "LayoutImage (positioned) IMG",
9 ];
10 function paintInvalidationTest() {
11 var img = document.getElementsByTagName('img')[0];
12 img.style.width = '100px';
13 img.style.height = '200px';
14 }
15 onload = runPaintInvalidationTest;
16 </script>
17 <style>
18 img {
19 position: absolute;
20 top: 50px;
21 left: 0px;
22 width: 150px;
23 height: 150px;
24 }
25 </style>
26 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">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698