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

Unified Diff: LayoutTests/paint/invalidation/spv2/grid-element-change-rows-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-element-change-rows-repaint.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html b/LayoutTests/paint/invalidation/spv2/grid-element-change-rows-repaint.html
similarity index 63%
copy from LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html
copy to LayoutTests/paint/invalidation/spv2/grid-element-change-rows-repaint.html
index 38a417f53071a0a3dd6209e89b178db7322290ab..8bbe13afaefabdd46c1db59e0d89910637ec75cf 100644
--- a/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html
+++ b/LayoutTests/paint/invalidation/spv2/grid-element-change-rows-repaint.html
@@ -1,15 +1,20 @@
+<!-- Based on fast/css-grid-layout/grid-element-change-rows-repaint.html -->
<!DOCTYPE html>
<html>
-<script src="../repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+ "LayoutGrid DIV class='grid'",
+ "LayoutBlockFlow DIV class='sizedToGridArea'",
+];
+function paintInvalidationTest()
{
var gridElement = document.getElementsByClassName("grid")[0];
gridElement.style.gridTemplateRows = "100px 50px";
}
-window.addEventListener("load", runRepaintTest, false);
+window.addEventListener("load", runPaintInvalidationTest, false);
</script>
-<link href="resources/grid.css" rel="stylesheet">
+<link href="../../../fast/css-grid-layout/resources/grid.css" rel="stylesheet">
<style>
body {
font: 10px/1 Ahem;

Powered by Google App Engine
This is Rietveld 408576698