Index: LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html |
diff --git a/LayoutTests/fast/repaint/transform-rotate-and-remove.html b/LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html |
similarity index 66% |
copy from LayoutTests/fast/repaint/transform-rotate-and-remove.html |
copy to LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html |
index a591ee4b12a493ad1c34939d8a8eb8016882a85c..78fbda93848ffd4fcba198fbd1d00a069392d6c4 100644 |
--- a/LayoutTests/fast/repaint/transform-rotate-and-remove.html |
+++ b/LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html |
@@ -1,3 +1,4 @@ |
+<!-- Based on fast/repaint/transform-rotate-and-remove.html --> |
<!DOCTYPE html> |
<html> |
<head> |
@@ -9,14 +10,18 @@ |
transform:rotate(50deg); |
} |
</style> |
- <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script> |
<script> |
- function repaintTest() { |
+ window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow DIV id='rel'", |
+ "LayoutBlockFlow DIV id='rel'", |
+ ]; |
+ function paintInvalidationTest() { |
document.getElementById('rel').classList.remove('rotated'); |
} |
</script> |
</head> |
- <body onload="runRepaintTest()"> |
+ <body onload="runPaintInvalidationTest()"> |
<!-- |
<p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=61338">61338</a>: Element not fully repainted after application and removal of transform </p> |
<p> The test PASSES only if all the four borders of the box are displayed in green</p> |