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

Side by Side Diff: LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants.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
« no previous file with comments | « no previous file | LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .spacer { 3 .spacer {
4 position: relative; 4 position: relative;
5 width: 300px; 5 width: 300px;
6 height: 300px; 6 height: 300px;
7 } 7 }
8 8
9 .clipping-container { 9 .clipping-container {
10 position: absolute; 10 position: absolute;
(...skipping 17 matching lines...) Expand all
28 .clipping-container { 28 .clipping-container {
29 width: 300px; 29 width: 300px;
30 } 30 }
31 </style> 31 </style>
32 <style id="alt2"> 32 <style id="alt2">
33 .clipping-container { 33 .clipping-container {
34 width: 100%; 34 width: 100%;
35 clip: rect(100px, 200px, 200px, 100px); 35 clip: rect(100px, 200px, 200px, 100px);
36 } 36 }
37 </style> 37 </style>
38 <script src="../../resources/run-after-display.js"></script> 38 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
39 <script> 39 <script>
40 var alt1 = document.getElementById('alt1'); 40 var alt1 = document.getElementById('alt1');
41 var alt2 = document.getElementById('alt2'); 41 var alt2 = document.getElementById('alt2');
42 alt2.disabled = true; 42 alt2.disabled = true;
43 43
44 function toggle() { 44 function repaintTest() {
45 if (alt1.disabled) { 45 alt2.disabled = false;
46 alt1.disabled = false; 46 alt1.disabled = true;
47 alt2.disabled = true;
48 } else {
49 alt2.disabled = false;
50 alt1.disabled = true;
51 }
52 } 47 }
53 48
54 function doTest() { 49 runRepaintTest();
55 internals.startTrackingRepaints(document);
56 toggle();
57 document.getElementById("console").textContent = internals.layerTreeAsTe xt(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
58 testRunner.notifyDone();
59 }
60
61 if (window.testRunner && window.internals) {
62 testRunner.dumpAsText();
63 testRunner.waitUntilDone();
64 runAfterDisplay(doTest);
65 }
66 </script> 50 </script>
67 51
68 <div class="spacer"> 52 <div class="spacer">
69 <div class="clipping-container"> 53 <div class="clipping-container">
70 <div class="clipped-composited-child"></div> 54 <div class="clipped-composited-child"></div>
71 </div> 55 </div>
72 </div> 56 </div>
73 <div class="spacer"> 57 <div class="spacer">
74 <div class="clipping-container with-initial-clipping"> 58 <div class="clipping-container with-initial-clipping">
75 <div class="clipped-composited-child"></div> 59 <div class="clipped-composited-child"></div>
76 </div> 60 </div>
77 </div> 61 </div>
78 <pre id="console"></pre>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698