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

Unified Diff: LayoutTests/paint/invalidation/spv2/resize-squashing-layer-that-needs-full-repaint.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/resize-squashing-layer-that-needs-full-repaint.html
diff --git a/LayoutTests/compositing/squashing/resize-squashing-layer-that-needs-full-repaint.html b/LayoutTests/paint/invalidation/spv2/resize-squashing-layer-that-needs-full-repaint.html
similarity index 69%
copy from LayoutTests/compositing/squashing/resize-squashing-layer-that-needs-full-repaint.html
copy to LayoutTests/paint/invalidation/spv2/resize-squashing-layer-that-needs-full-repaint.html
index ebec16f32042e4e37cfbe19bb975833ccda30aac..cbfa386165b4f25a3f4020fd9403880adcaa9011 100644
--- a/LayoutTests/compositing/squashing/resize-squashing-layer-that-needs-full-repaint.html
+++ b/LayoutTests/paint/invalidation/spv2/resize-squashing-layer-that-needs-full-repaint.html
@@ -1,5 +1,6 @@
+<!-- Based on compositing/squashing/resize-squashing-layer-that-needs-full-repaint.html -->
<!doctype html>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<!-- The second two divs form a combined squashing layer. display:none'ing the first of them will resize the squashing layer. -->
<div style="width: 500px; height: 500px; transform: translateZ(0)"></div>
@@ -9,9 +10,12 @@
<script>
// This test checks that resizing a squashing layer such that the offset of content squashed into it relative to the squashing
// container causes a repaint of its bounds within the updated squashing layer geometry.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='to-be-removed'",
+];
+function paintInvalidationTest() {
document.querySelector("#to-be-removed").style.display = 'none';
}
-runRepaintTest();
-</script>
+runPaintInvalidationTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698