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

Unified Diff: LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.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/grid-item-z-index-change-repaint.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html b/LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
similarity index 65%
copy from LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html
copy to LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
index 9882167d093f79a92d56df7a5129c2e1230c21cc..50655e46fea694e3467a3c11508f36d068f234a9 100644
--- a/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html
+++ b/LayoutTests/paint/invalidation/spv2/grid-item-z-index-change-repaint.html
@@ -1,7 +1,8 @@
+<!-- Based on fast/css-grid-layout/grid-item-z-index-change-repaint.html -->
<!DOCTYPE html>
<html>
<head>
-<link href="resources/grid.css" rel="stylesheet">
+<link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
<style>
.grid {
grid-template-rows: 100px;
@@ -19,15 +20,19 @@
z-index: -1;
}
</style>
-<script src="../repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='item1' class='sizedToGridArea green negativeZIndex'",
+ "LayoutBlockFlow DIV id='item2' class='sizedToGridArea green'",
+];
+function paintInvalidationTest()
{
document.getElementById('item1').style.zIndex = 1;
document.getElementById('item2').style.zIndex = 1;
}
-window.onload = runRepaintTest;
+window.onload = runPaintInvalidationTest;
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698