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

Unified Diff: LayoutTests/paint/invalidation/spv2/repaint-overflow-scrolled-squashed-content.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/repaint-overflow-scrolled-squashed-content.html
diff --git a/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html b/LayoutTests/paint/invalidation/spv2/repaint-overflow-scrolled-squashed-content.html
similarity index 69%
copy from LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html
copy to LayoutTests/paint/invalidation/spv2/repaint-overflow-scrolled-squashed-content.html
index c5c77ac62c1eecf2147d9e2e2e52367a381cb93c..1349b579c34ca781923a8d8ff503559a9ff2eb97 100644
--- a/LayoutTests/compositing/squashing/repaint-overflow-scrolled-squashed-content.html
+++ b/LayoutTests/paint/invalidation/spv2/repaint-overflow-scrolled-squashed-content.html
@@ -1,17 +1,21 @@
+<!-- Based on compositing/squashing/repaint-overflow-scrolled-squashed-content.html -->
<!doctype html>
<div style="position: absolute; overflow:scroll; width:200px; height:200px">
<div id="foo2" style="height: 1000px; width: 150px; background: lightblue; transform: translateZ(0) "></div>
<div id="foo" style="height: 1000px; width: 100px; position: absolute; top: 0px; left: 0px; background: lightgray"></div>
</div>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
// This test verifies that a repaint request for a squashed layer that is inside of a scrolling container and much taller
// than the viewport does not receive an incorrect paint invalidation rect when it is invalidated. In particular, the invalidation
// rect should not be clipped to the visible viewport.
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='foo'",
+];
+function paintInvalidationTest() {
document.querySelector("#foo").style.background = 'red';
}
-runRepaintTest();
-</script>
+runPaintInvalidationTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698