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

Unified Diff: LayoutTests/paint/invalidation/spv2/negative-shadow-box-expand.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/negative-shadow-box-expand.html
diff --git a/LayoutTests/paint/invalidation/spv2/negative-shadow-box-expand.html b/LayoutTests/paint/invalidation/spv2/negative-shadow-box-expand.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d5bc40219aa44a3a4deab544467e541ab75066e
--- /dev/null
+++ b/LayoutTests/paint/invalidation/spv2/negative-shadow-box-expand.html
@@ -0,0 +1,19 @@
+<!-- Based on fast/box-shadow/negative-shadow-box-expand.html -->
+<!DOCTYPE html>
+<script src="resources/paint-invalidation-test.js"></script>
+<script>
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='outer'",
+ "LayoutBlockFlow DIV id='inner2'",
+ ];
+ function paintInvalidationTest()
+ {
+ document.getElementById('inner2').style.display = 'block';
+ }
+</script>
+<body style="margin: 100px" onload="runPaintInvalidationTest()">
+ <div id="outer" style="box-shadow: 40px -40px #F00;">
+ <div id="inner1" style="height: 100px; background-color: blue"></div>
+ <div id="inner2" style="display: none; height: 100px; background-color: green"></div>
+ </div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698