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

Side by Side Diff: LayoutTests/compositing/squashing/remove-squashed-layer-plus-move.html

Issue 403843002: Convert some layout tests to text-based-repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase tests (due to removal of <pre>) 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 <style> 2 <style>
3 .mv-tile{ 3 .mv-tile{
4 display:inline-block; 4 display:inline-block;
5 height:50px; 5 height:50px;
6 position:relative; 6 position:relative;
7 width:100px; 7 width:100px;
8 margin-right:410px; 8 margin-right:410px;
9 } 9 }
10 </style> 10 </style>
11 <div style="position: absolute; width: 1000px; height: 1000px; transform: transl ateZ(0)"></div> 11 <div style="position: absolute; width: 1000px; height: 1000px; transform: transl ateZ(0)"></div>
12 <div id="container"> 12 <div id="container">
13 <div class="mv-tile" id="foo"></div> 13 <div class="mv-tile" id="foo"></div>
14 <div class="mv-tile" style="background-color: lightblue;"></div> 14 <div class="mv-tile" style="background-color: lightblue;"></div>
15 </div> 15 </div>
16 <div class="mv-tile" style="width: 1000px"></div> 16 <div class="mv-tile" style="width: 1000px"></div>
17 <script src="../../resources/run-after-display.js"></script> 17 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
18 <script> 18 <script>
19 // This test verifies that a paint invalidation is correctly issued for both the old and new location of 19 // This test verifies that a paint invalidation is correctly issued for both the old and new location of
20 // the mv-tile element which is *not* removed from the DOM, but nevertheless mov es to the left as the other one 20 // the mv-tile element which is *not* removed from the DOM, but nevertheless mov es to the left as the other one
21 // is removed. 21 // is removed.
22 22
23 if (window.testRunner) { 23 function repaintTest() {
24 testRunner.dumpAsText(); 24 document.querySelector("#foo").remove();
25 testRunner.waitUntilDone();
26 } 25 }
27 runAfterDisplay(function() {
28 if (window.internals)
29 window.internals.startTrackingRepaints(document);
30 26
31 document.querySelector("#foo").remove(); 27 runRepaintTest();
32
33 if (window.internals) {
34 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document , internals.LAYER_TREE_INCLUDES_REPAINT_RECTS));
35 window.internals.stopTrackingRepaints(document);
36 }
37
38 if (window.testRunner)
39 testRunner.notifyDone();
40 });
41 28
42 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698