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

Unified Diff: LayoutTests/paint/invalidation/spv2/subtree-root-clip.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/subtree-root-clip.html
diff --git a/LayoutTests/fast/repaint/subtree-root-clip.html b/LayoutTests/paint/invalidation/spv2/subtree-root-clip.html
similarity index 50%
copy from LayoutTests/fast/repaint/subtree-root-clip.html
copy to LayoutTests/paint/invalidation/spv2/subtree-root-clip.html
index 46a2876c632bb88214654db63071b33f91c7c46c..8ea8540ccf771fab4e99f8c71ae67acc058d301d 100644
--- a/LayoutTests/fast/repaint/subtree-root-clip.html
+++ b/LayoutTests/paint/invalidation/spv2/subtree-root-clip.html
@@ -1,15 +1,20 @@
+<!-- Based on fast/repaint/subtree-root-clip.html -->
<!DOCTYPE HTML>
<html>
<head>
- <script src="resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (floating) DIV",
+ "LayoutBlockFlow DIV id='inner'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById("inner").style.width = "0";
}
</script>
</head>
-<body onload="runRepaintTest()">
+<body onload="runPaintInvalidationTest()">
<div style="float: left; overflow: hidden; width: 100px; height: 100px; background-color: green;">
<div id="inner" style="width: 100px; height: 100px; background-color: red;"></div>
</div>

Powered by Google App Engine
This is Rietveld 408576698