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

Unified Diff: LayoutTests/paint/invalidation/spv2/scroll-fixed-layer-out-of-view.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/scroll-fixed-layer-out-of-view.html
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html b/LayoutTests/paint/invalidation/spv2/scroll-fixed-layer-out-of-view.html
similarity index 65%
copy from LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
copy to LayoutTests/paint/invalidation/spv2/scroll-fixed-layer-out-of-view.html
index 6ab380876216e0742ee2a7e92802bed26ee22870..ebcf1cb3fb6ae355972355f241938522d838e9e5 100644
--- a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
+++ b/LayoutTests/paint/invalidation/spv2/scroll-fixed-layer-out-of-view.html
@@ -1,19 +1,22 @@
+<!-- Based on compositing/repaint/scroll-fixed-layer-out-of-view.html -->
<!DOCTYPE html>
<html>
<head>
- <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)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ ];
+ function paintInvalidationTest()
{
window.scrollTo(0, 1000);
window.scrollTo(0, 100);
}
</script>
</head>
-<body style="height:2000px" onload="runRepaintTest()">
+<body style="height:2000px" onload="runPaintInvalidationTest()">
<div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div>
<div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div>
There should be no repaints here:

Powered by Google App Engine
This is Rietveld 408576698