Index: LayoutTests/paint/invalidation/spv2/background-resize-width.html |
diff --git a/LayoutTests/fast/repaint/background-resize-width.html b/LayoutTests/paint/invalidation/spv2/background-resize-width.html |
similarity index 51% |
copy from LayoutTests/fast/repaint/background-resize-width.html |
copy to LayoutTests/paint/invalidation/spv2/background-resize-width.html |
index d58f9f2d071aeacf59b72a0aaae9b1bee795055b..1ad78d7ed14e7468e9696cf084c5b3135d18cb92 100644 |
--- a/LayoutTests/fast/repaint/background-resize-width.html |
+++ b/LayoutTests/paint/invalidation/spv2/background-resize-width.html |
@@ -1,11 +1,39 @@ |
+<!-- Based on fast/repaint/background-resize-width.html --> |
<!DOCTYPE html> |
-<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() |
+if (window.testRunner) |
+ testRunner.dumpAsTextWithPixelResults(); |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow (positioned) DIV id='container'", |
+ "LayoutBlockFlow (positioned) DIV class='test image'", |
+ "LayoutBlockFlow (positioned) DIV class='test image size-cover'", |
+ "LayoutBlockFlow (positioned) DIV class='test image size-contain'", |
+ "LayoutBlockFlow (positioned) DIV class='test image fixed-width'", |
+ "LayoutBlockFlow (positioned) DIV class='test image percent-width'", |
+ "LayoutBlockFlow (positioned) DIV class='test image left'", |
+ "LayoutBlockFlow (positioned) DIV class='test image right'", |
+ "LayoutBlockFlow (positioned) DIV class='test image center'", |
+ "LayoutBlockFlow (positioned) DIV class='test image no-repeat'", |
+ "LayoutBlockFlow (positioned) DIV class='test image repeat-space'", |
+ "LayoutBlockFlow (positioned) DIV class='test image repeat-round'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated cover'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated contain'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated fixed-width'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated percent-width'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated left'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated right'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated center'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated no-repeat'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated repeat-space'", |
+ "LayoutBlockFlow (positioned) DIV class='test generated repeat-round'", |
+]; |
+function paintInvalidationTest() |
{ |
document.getElementById('container').style.width = '550px'; |
} |
-window.onload = runRepaintTest; |
+window.onload = runPaintInvalidationTest; |
</script> |
<style> |
#container { |
@@ -20,7 +48,7 @@ window.onload = runRepaintTest; |
height: 8%; |
} |
.image { |
- background-image: url(resources/small-apple.jpg); |
+ background-image: url(../../../fast/repaint/resources/small-apple.jpg); |
top: 0px; |
} |
.generated { |