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

Unified Diff: LayoutTests/paint/invalidation/spv2/clipping-should-not-repaint-composited-descendants-expected.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/clipping-should-not-repaint-composited-descendants-expected.html
diff --git a/LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants.html b/LayoutTests/paint/invalidation/spv2/clipping-should-not-repaint-composited-descendants-expected.html
similarity index 53%
copy from LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants.html
copy to LayoutTests/paint/invalidation/spv2/clipping-should-not-repaint-composited-descendants-expected.html
index d6d2fa2015a3687be81aa606274dfdb199ad4a44..ae88e81ded76e8d50d25b2f407c906415ad1540b 100644
--- a/LayoutTests/compositing/repaint/clipping-should-not-repaint-composited-descendants.html
+++ b/LayoutTests/paint/invalidation/spv2/clipping-should-not-repaint-composited-descendants-expected.html
@@ -10,10 +10,8 @@
position: absolute;
height: 300px;
transform: translateZ(0);
- }
-
- .with-initial-clipping {
- clip: rect(50px, 250px, 250px, 50px);
+ width: 100%;
+ clip: rect(100px, 200px, 200px, 100px);
}
.clipped-composited-child {
@@ -24,38 +22,13 @@
transform: translateZ(0);
}
</style>
-<style id="alt1">
- .clipping-container {
- width: 300px;
- }
-</style>
-<style id="alt2">
- .clipping-container {
- width: 100%;
- clip: rect(100px, 200px, 200px, 100px);
- }
-</style>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
-<script>
- var alt1 = document.getElementById('alt1');
- var alt2 = document.getElementById('alt2');
- alt2.disabled = true;
-
- function repaintTest() {
- alt2.disabled = false;
- alt1.disabled = true;
- }
-
- runRepaintTest();
-</script>
-
<div class="spacer">
<div class="clipping-container">
<div class="clipped-composited-child"></div>
</div>
</div>
<div class="spacer">
- <div class="clipping-container with-initial-clipping">
+ <div class="clipping-container">
<div class="clipped-composited-child"></div>
</div>
</div>

Powered by Google App Engine
This is Rietveld 408576698