Index: LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html |
diff --git a/LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html b/LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html |
similarity index 74% |
copy from LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html |
copy to LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html |
index 5ebb56b8ba2bcf092d242978a7623bc077cae3ac..c018ed901eee5e3e46bc5ff3b6f65b114529142c 100644 |
--- a/LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html |
+++ b/LayoutTests/paint/invalidation/spv2/horizontal-bt-overflow-parent.html |
@@ -1,3 +1,4 @@ |
+<!-- Based on fast/repaint/horizontal-bt-overflow-parent.html --> |
<!DOCTYPE html> |
<html><head> |
<style> |
@@ -31,17 +32,20 @@ |
</div></div> |
An orange rect should be painted.<br/> |
In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't care how many times is the log dumpped. |
- <script src="../../resources/run-after-layout-and-paint.js"></script> |
- <script src="resources/text-based-repaint.js"></script> |
+ <script src="../../../resources/run-after-layout-and-paint.js"></script> |
+ <script src="resources/paint-invalidation-test.js"></script> |
<script> |
- repaintTest = function() { |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow DIV class='target'", |
+ ]; |
+ function paintInvalidationTest() { |
var target = document.getElementsByClassName("target")[0]; |
target.style.visibility = "visible"; |
}; |
var container = document.getElementsByClassName("container")[0]; |
runAfterLayoutAndPaint(function() { |
container.scrollTop = 0; |
- runRepaintTest(); |
+ runPaintInvalidationTest(); |
}); |
</script> |
</body></html> |