Index: LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html |
diff --git a/LayoutTests/fast/repaint/percent-size-image-resize-container.html b/LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html |
similarity index 50% |
copy from LayoutTests/fast/repaint/percent-size-image-resize-container.html |
copy to LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html |
index 2272626ddf2d98c20b6086a993a598a64fe17914..2f2aaef38523ac461699329dfbd55a9bd4d11b3a 100644 |
--- a/LayoutTests/fast/repaint/percent-size-image-resize-container.html |
+++ b/LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html |
@@ -1,12 +1,20 @@ |
+<!-- Based on fast/repaint/percent-size-image-resize-container.html --> |
<!DOCTYPE html> |
-<script src="resources/text-based-repaint.js"></script> |
+<script src="resources/paint-invalidation-test.js"></script> |
<script> |
-function repaintTest() { |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow (positioned) DIV", |
+ "LayoutImage (positioned) IMG", |
+]; |
+function paintInvalidationTest() { |
var div = document.getElementsByTagName('div')[0]; |
div.style.width = '100px'; |
div.style.height = '200px'; |
} |
-onload = runRepaintTest; |
+onload = runPaintInvalidationTest; |
</script> |
<style> |
div { |
@@ -24,5 +32,5 @@ img { |
</style> |
The percent-sized image should be fully repainted on container's resize. Passes if there is a whole apple after resize. |
<div> |
- <img src="resources/apple.jpg"> |
+ <img src="../../../fast/repaint/resources/apple.jpg"> |
</div> |