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

Unified Diff: LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.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/child-of-sub-pixel-offset-composited-layer.html
diff --git a/LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html b/LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
similarity index 64%
copy from LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html
copy to LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
index b9fae83d26381b31ba9b05255ad17f0858eee943..4c5bd0388929fd5bc16f58235f0e7968efe218fc 100644
--- a/LayoutTests/fast/repaint/child-of-sub-pixel-offset-composited-layer.html
+++ b/LayoutTests/paint/invalidation/spv2/child-of-sub-pixel-offset-composited-layer.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html -->
<!DOCTYPE html>
<html>
<head>
@@ -22,9 +23,9 @@
border-color: green;
}
</style>
-<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
</head>
-<body onload="runRepaintTest();">
+<body onload="runPaintInvalidationTest();">
<div class="container">
<div id="target">
</div>
@@ -32,9 +33,10 @@
<script>
// This test ensures that children of a composited element with a sub-pixel offset are properly repainted.
// The box should have a fully green border.
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target' class='green'",
+];
+function paintInvalidationTest() {
var target = document.getElementById('target');
target.classList.add('green');
}

Powered by Google App Engine
This is Rietveld 408576698