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

Side by Side Diff: LayoutTests/paint/invalidation/spv2/dont-invalidate-root-layer-when-composited-layer-becomes-visible.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/dont-invalidate-root-layer-when-composited-layer-beco mes-visible.html -->
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></ script>
5 <script type="text/javascript"> 6 <script type="text/javascript">
6 window.onload = function() { 7 window.onload = function() {
7 runRepaintTest(); 8 runPaintInvalidationTest();
8 }; 9 };
9 10
10 function repaintTest() { 11 window.expectedPaintInvalidationObjects = [
12 "LayoutBlockFlow (positioned) DIV id='target'",
13 ];
14 function paintInvalidationTest() {
11 document.getElementById('target').style.visibility = 'visible'; 15 document.getElementById('target').style.visibility = 'visible';
12 } 16 }
13 </script> 17 </script>
14 </head> 18 </head>
15 <body> 19 <body>
16 <div id="target" 20 <div id="target"
17 style="will-change: transform; 21 style="will-change: transform;
18 visibility:hidden; 22 visibility:hidden;
19 position: absolute; 23 position: absolute;
20 top: 200px; left: 200px; 24 top: 200px; left: 200px;
21 width: 200px; height: 200px; 25 width: 200px; height: 200px;
22 background-color: redl "></div> 26 background-color: redl "></div>
23 </body> 27 </body>
24 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698