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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/requestAnimation-translation-leave-traces.html

Issue 1880763002: Merge repaintRects and paintInvalidationObjects in text-based-repaint test results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 body { 3 body {
4 margin: 0px; 4 margin: 0px;
5 } 5 }
6 6
7 #box { 7 #box {
8 background-color: purple; 8 background-color: purple;
9 height: 100px; 9 height: 100px;
10 width: 100px; 10 width: 100px;
(...skipping 16 matching lines...) Expand all
27 testedLocations.push(x); 27 testedLocations.push(x);
28 if (window.internals) 28 if (window.internals)
29 internals.startTrackingRepaints(document); 29 internals.startTrackingRepaints(document);
30 } 30 }
31 31
32 box.style.transform = "translate(" + x + "px, 0px)"; 32 box.style.transform = "translate(" + x + "px, 0px)";
33 if (++i < finalIteration) { 33 if (++i < finalIteration) {
34 requestAnimationFrame(tick); 34 requestAnimationFrame(tick);
35 } else { 35 } else {
36 if (window.internals) { 36 if (window.internals) {
37 var layerTree = internals.layerTreeAsText(document, internals.LA YER_TREE_INCLUDES_REPAINT_RECTS); 37 var layerTree = internals.layerTreeAsText(document, internals.LA YER_TREE_INCLUDES_PAINT_INVALIDATIONS);
38 window.internals.stopTrackingRepaints(document); 38 window.internals.stopTrackingRepaints(document);
39 document.getElementById("result").textContent = "Tested location s: " + testedLocations + '\n' + layerTree; 39 document.getElementById("result").textContent = "Tested location s: " + testedLocations + '\n' + layerTree;
40 } 40 }
41 if (window.testRunner) 41 if (window.testRunner)
42 testRunner.notifyDone(); 42 testRunner.notifyDone();
43 } 43 }
44 } 44 }
45 45
46 requestAnimationFrame(tick); 46 requestAnimationFrame(tick);
47 }; 47 };
48 </script> 48 </script>
49 <div id="box"></div> 49 <div id="box"></div>
50 This test checks that changing the transform on an element triggers a correct in validation.<br> 50 This test checks that changing the transform on an element triggers a correct in validation.<br>
51 The paint invalidations below should match the transformed element's coordinates . 51 The paint invalidations below should match the transformed element's coordinates .
52 <pre id="result"></pre> 52 <pre id="result"></pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698