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

Unified Diff: LayoutTests/paint/invalidation/spv2/inline-block-resize.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/inline-block-resize.html
diff --git a/LayoutTests/fast/repaint/inline-block-resize.html b/LayoutTests/paint/invalidation/spv2/inline-block-resize.html
similarity index 60%
copy from LayoutTests/fast/repaint/inline-block-resize.html
copy to LayoutTests/paint/invalidation/spv2/inline-block-resize.html
index 64e40d47fd93f17716ecbe4f6be29c5ae326f7aa..4e08cbb534e053eced7ead6bb6391740816ef888 100644
--- a/LayoutTests/fast/repaint/inline-block-resize.html
+++ b/LayoutTests/paint/invalidation/spv2/inline-block-resize.html
@@ -1,12 +1,19 @@
+<!-- Based on fast/repaint/inline-block-resize.html -->
<html>
<head>
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=12885</title>
<style type="text/css">
</style>
- <script src="resources/text-based-repaint.js" type="text/javascript"></script>
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "RootInlineBox",
+ "InlineBox",
+ "LayoutBlockFlow (positioned) DIV",
+ "LayoutBlockFlow DIV id='target'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById('target').style.width = '100px';
document.getElementById('target').style.height = '100px';
@@ -14,7 +21,7 @@
}
</script>
</head>
-<body onload="runRepaintTest();">
+<body onload="runPaintInvalidationTest();">
<div style="position:absolute; height:100px; width:100px;background-color:red"></div>
<div style="padding-top:100px"></div>
<div style="position:absolute"><div id="target" style="display:inline-block; background-color:green"></div></div>

Powered by Google App Engine
This is Rietveld 408576698