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

Unified Diff: LayoutTests/paint/invalidation/spv2/invalidate-when-leaving-squashed-layer.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: LayoutTests/paint/invalidation/spv2/invalidate-when-leaving-squashed-layer.html
diff --git a/LayoutTests/compositing/squashing/invalidate-when-leaving-squashed-layer.html b/LayoutTests/paint/invalidation/spv2/invalidate-when-leaving-squashed-layer.html
similarity index 68%
copy from LayoutTests/compositing/squashing/invalidate-when-leaving-squashed-layer.html
copy to LayoutTests/paint/invalidation/spv2/invalidate-when-leaving-squashed-layer.html
index 6456b03d231cf63d90814f4c9c1cb3ee9e7ff122..abf5ed59f2bded89025c667f335d8298498b6365 100644
--- a/LayoutTests/compositing/squashing/invalidate-when-leaving-squashed-layer.html
+++ b/LayoutTests/paint/invalidation/spv2/invalidate-when-leaving-squashed-layer.html
@@ -1,14 +1,18 @@
+<!-- Based on compositing/squashing/invalidate-when-leaving-squashed-layer.html -->
<!DOCTYPE html>
<div style="position:absolute; height: 200px; width: 200px; transform: translateZ(0); background: lightgray"></div>
<div style="position:absolute; height: 200px; width: 200px; top: 50px; left: 50px; background:lightblue"></div>
<div id="target" style="position:absolute; height: 200px; width: 200px; top: 50px; left: 50px; background:lightblue"></div>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
// Tests that causing a squashed layer to leave its squashing layer causes an invalidation in the squashing layer for the previous
// location of the squashed layer.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target'",
+];
+function paintInvalidationTest() {
var target = document.getElementById("target");
target.style.transform = 'translateZ(0)';
};
-runRepaintTest();
+runPaintInvalidationTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698