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

Unified Diff: LayoutTests/paint/invalidation/spv2/mix-blend-mode-separate-stacking-context.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/mix-blend-mode-separate-stacking-context.html
diff --git a/LayoutTests/fast/repaint/mix-blend-mode-separate-stacking-context.html b/LayoutTests/paint/invalidation/spv2/mix-blend-mode-separate-stacking-context.html
similarity index 62%
copy from LayoutTests/fast/repaint/mix-blend-mode-separate-stacking-context.html
copy to LayoutTests/paint/invalidation/spv2/mix-blend-mode-separate-stacking-context.html
index d17ca18820f7bf753bbacbaaff5465392ed629a7..7f38ae6fe2f88be5d27f4fa652eeb696a62a369f 100644
--- a/LayoutTests/fast/repaint/mix-blend-mode-separate-stacking-context.html
+++ b/LayoutTests/paint/invalidation/spv2/mix-blend-mode-separate-stacking-context.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/mix-blend-mode-separate-stacking-context.html -->
<!DOCTYPE HTML>
<html>
<head>
@@ -9,10 +10,10 @@
float: left;
}
</style>
-<script src="resources/text-based-repaint.js" type="text/javascript"></script>
+<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<!-- Repaint test to ensure that setting a blend mode dynamically triggers this operation
only with the contents of the nearest ancestor stacking context. -->
-<body onload="runRepaintTest()">
+<body onload="runPaintInvalidationTest()">
<div style="background: green; position: relative; z-index: -1;">
<div id="first" style="mix-blend-mode: normal; background-color: blue;"></div>
</div>
@@ -27,7 +28,17 @@
</div>
<script>
- function repaintTest() {
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (floating) DIV id='second'",
+ "LayoutBlockFlow (relative positioned) (floating) DIV",
+ "LayoutBlockFlow (floating) DIV id='first'",
+ "LayoutBlockFlow (relative positioned) (floating) DIV",
+ "LayoutBlockFlow (floating) DIV id='second'",
+ "LayoutBlockFlow (floating) DIV id='third'",
+ "LayoutBlockFlow (relative positioned) (floating) DIV id='fourth'",
+ "LayoutBlockFlow (floating) DIV",
+ ];
+ function paintInvalidationTest() {
document.getElementById('first').style.mixBlendMode = "multiply";
document.getElementById('second').style.mixBlendMode = "normal";
document.getElementById('third').style.mixBlendMode = "multiply";

Powered by Google App Engine
This is Rietveld 408576698