Index: LayoutTests/paint/invalidation/spv2/border-outline-0.html |
diff --git a/LayoutTests/fast/repaint/border-outline-0.html b/LayoutTests/paint/invalidation/spv2/border-outline-0.html |
similarity index 72% |
copy from LayoutTests/fast/repaint/border-outline-0.html |
copy to LayoutTests/paint/invalidation/spv2/border-outline-0.html |
index 0f6dbe083e51a1747be33ff2499cddd59e712fde..b0ffdf4040b6194d3bc3c42c5661621cb204489c 100644 |
--- a/LayoutTests/fast/repaint/border-outline-0.html |
+++ b/LayoutTests/paint/invalidation/spv2/border-outline-0.html |
@@ -1,3 +1,4 @@ |
+<!-- Based on fast/repaint/border-outline-0.html --> |
<!DOCTYPE html> |
<style> |
@@ -15,7 +16,7 @@ td { |
} |
#border-image { |
- border-image: url(_example.png) 100% 100 100 round; |
+ border-image: url(../../../fast/repaint/_example.png) 100% 100 100 round; |
border-style: none; |
border-width: 50px; |
position: absolute; |
@@ -24,12 +25,12 @@ td { |
} |
</style> |
-<script src="resources/text-based-repaint.js"></script> |
+<script src="resources/paint-invalidation-test.js"></script> |
<script> |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
- |
-function repaintTest() { |
+window.expectedPaintInvalidationObjects = [ |
+ "LayoutBlockFlow (positioned) DIV id='border-image'", |
+]; |
+function paintInvalidationTest() { |
var border = document.getElementById("border"); |
border.style.border = "0"; |
@@ -42,7 +43,7 @@ function repaintTest() { |
var borderImage = document.getElementById("border-image"); |
borderImage.style.borderWidth = "0"; |
} |
-onload = runRepaintTest; |
+onload = runPaintInvalidationTest; |
</script> |
<p>Tests that setting an outline or a border of 0 on an element without a border or outline doesn't repaint.</p> |