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

Unified Diff: LayoutTests/paint/invalidation/spv2/scrolling-without-painting.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/scrolling-without-painting.html
diff --git a/LayoutTests/compositing/overflow/scrolling-without-painting.html b/LayoutTests/paint/invalidation/spv2/scrolling-without-painting.html
similarity index 76%
copy from LayoutTests/compositing/overflow/scrolling-without-painting.html
copy to LayoutTests/paint/invalidation/spv2/scrolling-without-painting.html
index 49ad6cfc48cd53a02ce0b2d6129410d8639083db..80d25c45d238a65bddb9f4000d82638bc443a1f1 100644
--- a/LayoutTests/compositing/overflow/scrolling-without-painting.html
+++ b/LayoutTests/paint/invalidation/spv2/scrolling-without-painting.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/overflow/scrolling-without-painting.html -->
<!DOCTYPE html>
<!--
@@ -21,18 +22,20 @@ repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087.
margin-top: 25px;
}
</style>
- <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+ <script src="resources/paint-invalidation-test.js"></script>
<script type="text/javascript">
if (window.internals)
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
- function repaintTest() {
+ window.expectedPaintInvalidationObjects = [
+ ];
+ function paintInvalidationTest() {
// Scroll down. This should not cause any more repaints to the
// scrolling contents.
document.getElementById('scroller').scrollTop = 25;
}
- runRepaintTest();
+ runPaintInvalidationTest();
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698