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

Unified Diff: LayoutTests/paint/invalidation/spv2/updating-scrolling-content.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/updating-scrolling-content.html
diff --git a/LayoutTests/compositing/overflow/updating-scrolling-content.html b/LayoutTests/paint/invalidation/spv2/updating-scrolling-content.html
similarity index 80%
copy from LayoutTests/compositing/overflow/updating-scrolling-content.html
copy to LayoutTests/paint/invalidation/spv2/updating-scrolling-content.html
index 5eac468b344335c20a9193563e539c688c02d089..5a27406f711fcde052f66f1587d1a2d03d589e7d 100644
--- a/LayoutTests/compositing/overflow/updating-scrolling-content.html
+++ b/LayoutTests/paint/invalidation/spv2/updating-scrolling-content.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/overflow/updating-scrolling-content.html -->
<!DOCTYPE html>
<!--
@@ -25,7 +26,7 @@ https://bugs.webkit.org/show_bug.cgi?id=100524.
height: 1000px;
}
</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);
@@ -41,10 +42,14 @@ https://bugs.webkit.org/show_bug.cgi?id=100524.
// indicator (which is now outside the overflow clip).
scroller.scrollTop = 1000;
- runRepaintTest();
+ runPaintInvalidationTest();
});
- function repaintTest() {
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='indicator'",
+ "LayoutBlockFlow DIV id='indicator'",
+ ];
+ function paintInvalidationTest() {
var scroller = document.getElementById('scroller');
var indicator = document.getElementById('indicator');

Powered by Google App Engine
This is Rietveld 408576698