Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: LayoutTests/paint/invalidation/spv2/border-outline-0.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698