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

Unified Diff: LayoutTests/paint/invalidation/spv2/should-not-repaint-composited-descendants.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/should-not-repaint-composited-descendants.html
diff --git a/LayoutTests/compositing/repaint/should-not-repaint-composited-descendants.html b/LayoutTests/paint/invalidation/spv2/should-not-repaint-composited-descendants.html
similarity index 61%
copy from LayoutTests/compositing/repaint/should-not-repaint-composited-descendants.html
copy to LayoutTests/paint/invalidation/spv2/should-not-repaint-composited-descendants.html
index 19c4a735a8ec1336b5419709f8a01e0864a09969..ce3ebc811165cb47b2d4d25f56ce31d87f9a7fba 100644
--- a/LayoutTests/compositing/repaint/should-not-repaint-composited-descendants.html
+++ b/LayoutTests/paint/invalidation/spv2/should-not-repaint-composited-descendants.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/repaint/should-not-repaint-composited-descendants.html -->
<!DOCTYPE html>
<style>
#composited-box {
@@ -15,13 +16,18 @@
backface-visibility: hidden;
}
</style>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "##ALL##",
+ "LayoutBlockFlow (positioned) DIV id='composited-box'",
+ "LayoutBlockFlow DIV class='child'",
+];
+function paintInvalidationTest() {
// This will cause a full layer repaint, but should not include the composited child.
document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 120px, 30px)';
}
-window.onload = runRepaintTest;
+window.onload = runPaintInvalidationTest;
</script>
<div id="composited-box">
<div class="child"></div>

Powered by Google App Engine
This is Rietveld 408576698