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

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

Issue 2327223002: Move all remaining fast/repaint tests to paint/invalidation (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/repaint/requestAnimation-translation-leave-traces.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/requestAnimation-translation-leave-traces.html b/third_party/WebKit/LayoutTests/fast/repaint/requestAnimation-translation-leave-traces.html
deleted file mode 100644
index 8c17382271c17701cc58604ed73cd509810720cc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/repaint/requestAnimation-translation-leave-traces.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<style>
-body {
- margin: 0px;
-}
-
-#box {
- background-color: purple;
- height: 100px;
- width: 100px;
-}
-</style>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-window.onload = function() {
- var i = 0;
- var finalIteration = 6;
- var startTrackingRectIteration = 3; // We need to put out a few frames before reproducing the bug.
- var testedLocations = [];
- function tick(t) {
- var x = 300 * i;
- if (i > startTrackingRectIteration) {
- testedLocations.push(x);
- if (window.internals)
- internals.startTrackingRepaints(document);
- }
-
- box.style.transform = "translate(" + x + "px, 0px)";
- if (++i < finalIteration) {
- requestAnimationFrame(tick);
- } else {
- if (window.internals) {
- var layerTree = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
- window.internals.stopTrackingRepaints(document);
- document.getElementById("result").textContent = "Tested locations: " + testedLocations + '\n' + layerTree;
- }
- if (window.testRunner)
- testRunner.notifyDone();
- }
- }
-
- requestAnimationFrame(tick);
-};
-</script>
-<div id="box"></div>
-This test checks that changing the transform on an element triggers a correct invalidation.<br>
-The paint invalidations below should match the transformed element's coordinates.
-<pre id="result"></pre>

Powered by Google App Engine
This is Rietveld 408576698