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

Unified Diff: LayoutTests/paint/invalidation/spv2/intermediate-layout-position.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/intermediate-layout-position.html
diff --git a/LayoutTests/fast/repaint/intermediate-layout-position.html b/LayoutTests/paint/invalidation/spv2/intermediate-layout-position.html
similarity index 68%
copy from LayoutTests/fast/repaint/intermediate-layout-position.html
copy to LayoutTests/paint/invalidation/spv2/intermediate-layout-position.html
index 22ea2452d69382ba7da0f45f02a12fb49a793cb7..210f5641d8b2cade10b2e751cf462b7912a199d0 100644
--- a/LayoutTests/fast/repaint/intermediate-layout-position.html
+++ b/LayoutTests/paint/invalidation/spv2/intermediate-layout-position.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/intermediate-layout-position.html -->
<html>
<head>
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title>
@@ -5,16 +6,22 @@
.float { float: right; height: 40px; width: 40px; }
.test { height: 100px; background-color: aliceblue }
</style>
- <script src="resources/text-based-repaint.js" type="text/javascript"></script>
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script type="text/javascript">
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV",
+ "LayoutBlockFlow DIV id='target'",
+ "LayoutTable TABLE",
+ "LayoutTableCell TD id='cell'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById('target').style.height='20px';
document.getElementById('cell').style.height='20px';
}
</script>
</head>
-<body onload="runRepaintTest()">
+<body onload="runPaintInvalidationTest()">
<div class="test">
<div class="float"></div>
<div style="clear: right; background-color: purple; width: 40px; padding: 3px;">

Powered by Google App Engine
This is Rietveld 408576698