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

Unified Diff: LayoutTests/paint/invalidation/spv2/remove-squashed-layer-plus-move.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/remove-squashed-layer-plus-move.html
diff --git a/LayoutTests/paint/invalidation/spv2/remove-squashed-layer-plus-move.html b/LayoutTests/paint/invalidation/spv2/remove-squashed-layer-plus-move.html
new file mode 100644
index 0000000000000000000000000000000000000000..7c29ad207b87bd5545f87996a3978103f69f2a72
--- /dev/null
+++ b/LayoutTests/paint/invalidation/spv2/remove-squashed-layer-plus-move.html
@@ -0,0 +1,45 @@
+<!-- Based on compositing/squashing/remove-squashed-layer-plus-move.html -->
+<!DOCTYPE html>
+<style>
+.mv-tile{
+ display:inline-block;
+ height:50px;
+ position:relative;
+ width:100px;
+ margin-right:410px;
+}
+</style>
+<div style="position: absolute; width: 1000px; height: 1000px; transform: translateZ(0)"></div>
+<div id="container">
+ <div class="mv-tile" id="foo"></div>
+ <div class="mv-tile" style="background-color: lightblue;"></div>
+</div>
+<div class="mv-tile" style="width: 1000px"></div>
+<script src="resources/paint-invalidation-test.js"></script>
+<script>
+// This test verifies that a paint invalidation is correctly issued for both the old and new location of
+// the mv-tile element which is *not* removed from the DOM, but nevertheless moves to the left as the other one
+// is removed.
+
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (relative positioned) DIV id='foo' class='mv-tile'",
+ "InlineBox",
+ "RootInlineBox",
+ "InlineBox",
+ "RootInlineBox",
+ "LayoutBlockFlow DIV id='container'",
+ "LayoutBlockFlow DIV id='container'",
+ "LayoutBlockFlow (relative positioned) DIV class='mv-tile'",
+ "LayoutBlockFlow (anonymous)",
+ "LayoutBlockFlow (relative positioned) DIV class='mv-tile'",
+ "LayoutText #text",
+ "LayoutText #text",
+ "LayoutText #text",
+];
+function paintInvalidationTest() {
+ document.querySelector("#foo").remove();
+}
+
+runPaintInvalidationTest();
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698