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

Unified Diff: LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.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/repaint-squashed-layer-in-rect.html
diff --git a/LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html b/LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html
similarity index 72%
copy from LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html
copy to LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html
index 4d844520d4c8c7fac5b61e773fb101abbaed94bc..78e6f9c9f391aaf22d82560906819e34e7af1c1f 100644
--- a/LayoutTests/compositing/squashing/repaint-squashed-layer-in-rect.html
+++ b/LayoutTests/paint/invalidation/spv2/repaint-squashed-layer-in-rect.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/squashing/repaint-squashed-layer-in-rect.html -->
<!doctype html>
<div style="height: 800px; width: 800px; background-color: lightgray; transform:translateZ(0)">
</div>
@@ -7,13 +8,16 @@
<div id="imgElement" style="height: 200px; width: 200px; background-color: lightblue">
</div>
</div>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
// Test that a repaint for the rect containing the changed background image is issued in the coordinate space of the
// squashing layer, *not* local to the div with the background image on it.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='imgElement'",
+];
+function paintInvalidationTest() {
var imgElement = document.querySelector("#imgElement");
imgElement.style.backgroundImage = "url('data:image/gif;base64,R0lGODdhAgACAIABAAAAAP///ywAAAAAAgACAAACA0QCBQA7')";
}
-runRepaintTest();
-</script>
+runPaintInvalidationTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698