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

Side by Side Diff: LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html

Issue 408843004: Convert more tests into text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove LayoutTests/virtual/softwarecompositing/repaint/invalidations-on-composited-layers-expected.… Created 6 years, 5 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <style> 3 <style>
4 .composited { 4 .composited {
5 -webkit-transform: translatez(0); 5 -webkit-transform: translatez(0);
6 } 6 }
7 7
8 .box { 8 .box {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 left: 340px; 43 left: 340px;
44 background-color: cyan; 44 background-color: cyan;
45 } 45 }
46 46
47 div:hover { 47 div:hover {
48 background-color: green; 48 background-color: green;
49 -webkit-transform:translatez(0); 49 -webkit-transform:translatez(0);
50 } 50 }
51 51
52 </style> 52 </style>
53 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
53 <script> 54 <script>
54 if (window.internals) 55 if (window.internals)
55 internals.settings.setLayerSquashingEnabled(true); 56 internals.settings.setLayerSquashingEnabled(true);
56 if (window.testRunner)
57 testRunner.dumpAsText();
58 57
59 function runTest() 58 function repaintTest()
60 { 59 {
61 if (!window.internals)
62 return;
63 document.body.offsetTop;
64 window.internals.startTrackingRepaints(document);
65 document.getElementById('repaintdiv').style.background = 'salmon'; 60 document.getElementById('repaintdiv').style.background = 'salmon';
66 document.getElementById('testResults').textContent = window.internals.la yerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
67 window.internals.stopTrackingRepaints(document);
68
69 // Display the test results only after test is done so that it does not affect repaint rect results.
70 document.getElementById('testResults').style.display = "block";
71 } 61 }
62 runRepaintTest();
72 </script> 63 </script>
73 </head> 64 </head>
74 <body onload="runTest()"> 65 <body>
75 <div class="composited box behind"></div> 66 <div class="composited box behind"></div>
76 <div class="box middle"></div> 67 <div class="box middle"></div>
77 <img id="repaintdiv" class="repaintdiv"></img> 68 <img id="repaintdiv" class="repaintdiv"></img>
78 <div class="box top"></div> 69 <div class="box top"></div>
79
80 <pre id="testResults" style="display:none">
81 </div>
82 </body> 70 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698