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

Unified Diff: LayoutTests/paint/invalidation/spv2/fixed-child-of-fixed-move-after-scroll.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/fixed-child-of-fixed-move-after-scroll.html
diff --git a/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html b/LayoutTests/paint/invalidation/spv2/fixed-child-of-fixed-move-after-scroll.html
similarity index 73%
copy from LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html
copy to LayoutTests/paint/invalidation/spv2/fixed-child-of-fixed-move-after-scroll.html
index 410c2fdfc2cbc0622c2e26a48fff73db3e2b02ed..27200401a0482cc6bea49e5fa72f419ff3fe18c9 100644
--- a/LayoutTests/fast/repaint/fixed-child-of-fixed-move-after-scroll.html
+++ b/LayoutTests/paint/invalidation/spv2/fixed-child-of-fixed-move-after-scroll.html
@@ -1,14 +1,18 @@
+<!-- Based on fast/repaint/fixed-child-of-fixed-move-after-scroll.html -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <script src="resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script type="text/javascript">
function scrollAndRepaint()
{
scrollBy(0, 200);
- runRepaintTest();
+ runPaintInvalidationTest();
}
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='toMove'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById('toMove').style.left = "150px";
document.getElementById('toMove').style.backgroundColor = "green";

Powered by Google App Engine
This is Rietveld 408576698