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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/change-transform.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
1 <!-- Based on fast/repaint/change-transform.html -->
1 <html> 2 <html>
2 <head> 3 <head>
3 <script src="resources/text-based-repaint.js"></script> 4 <script src="resources/paint-invalidation-test.js"></script>
4 <script type="text/javascript" charset="utf-8"> 5 <script type="text/javascript" charset="utf-8">
5 function repaintTest() 6 window.expectedPaintInvalidationObjects = [
7 "LayoutBlockFlow DIV id='square'",
8 ];
9 function paintInvalidationTest()
6 { 10 {
7 var target = document.getElementById("square"); 11 var target = document.getElementById("square");
8 target.style.webkitTransform = "scale(0.5, 0.5)"; 12 target.style.webkitTransform = "scale(0.5, 0.5)";
9 } 13 }
10 </script> 14 </script>
11 <style type="text/css" media="screen"> 15 <style type="text/css" media="screen">
12 body { 16 body {
13 margin: 10px; 17 margin: 10px;
14 } 18 }
15 #square { 19 #square {
16 width: 100px; 20 width: 100px;
17 height: 100px; 21 height: 100px;
18 background: red; 22 background: red;
19 } 23 }
20 #overlay { 24 #overlay {
21 position: absolute; 25 position: absolute;
22 left: 35px; 26 left: 35px;
23 top: 35px; 27 top: 35px;
24 width: 50px; 28 width: 50px;
25 height: 50px; 29 height: 50px;
26 background: green 30 background: green
27 } 31 }
28 </style> 32 </style>
29 </head> 33 </head>
30 <body onload="runRepaintTest()"> 34 <body onload="runPaintInvalidationTest()">
31 <div id="square"></div> 35 <div id="square"></div>
32 <div id="overlay"></div> 36 <div id="overlay"></div>
33 37
34 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=19623">https://bugs.webkit.o rg/show_bug.cgi?id=19623</a></p> 38 <p><a href="https://bugs.webkit.org/show_bug.cgi?id=19623">https://bugs.webkit.o rg/show_bug.cgi?id=19623</a></p>
35 <p>Test for incomplete repaint when a non-layer object gains a transform. You sh ould see a green square above. If you see any red, the test has failed.</p> 39 <p>Test for incomplete repaint when a non-layer object gains a transform. You sh ould see a green square above. If you see any red, the test has failed.</p>
36 </body> 40 </body>
37 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698