Index: LayoutTests/paint/invalidation/spv2/fixed-scroll-in-empty-root-layer.html |
diff --git a/LayoutTests/compositing/overflow/fixed-scroll-in-empty-root-layer.html b/LayoutTests/paint/invalidation/spv2/fixed-scroll-in-empty-root-layer.html |
similarity index 66% |
copy from LayoutTests/compositing/overflow/fixed-scroll-in-empty-root-layer.html |
copy to LayoutTests/paint/invalidation/spv2/fixed-scroll-in-empty-root-layer.html |
index 4aaddc780444fc04a73feb5912d12f5fac30ff6b..95bf034f9243e0d94930d5ff43ef1cd137b8c561 100644 |
--- a/LayoutTests/compositing/overflow/fixed-scroll-in-empty-root-layer.html |
+++ b/LayoutTests/paint/invalidation/spv2/fixed-scroll-in-empty-root-layer.html |
@@ -1,10 +1,15 @@ |
+<!-- Based on compositing/overflow/fixed-scroll-in-empty-root-layer.html --> |
<!DOCTYPE html> |
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<script src="resources/paint-invalidation-test.js"></script> |
<script> |
-function repaintTest() { |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow (positioned) DIV", |
+ "LayoutBlockFlow (positioned) DIV", |
+]; |
+function paintInvalidationTest() { |
window.scrollBy(0, 200); |
} |
-onload = runRepaintTest; |
+onload = runPaintInvalidationTest; |
</script> |
<body style="height: 2000px"> |
Tests invalidation of fixed element when scrolled in a page with empty root layer. Passes if there is no red. |