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

Unified Diff: LayoutTests/paint/invalidation/spv2/invalidations-with-large-negative-margin.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/invalidations-with-large-negative-margin.html
diff --git a/LayoutTests/compositing/squashing/invalidations-with-large-negative-margin.html b/LayoutTests/paint/invalidation/spv2/invalidations-with-large-negative-margin.html
similarity index 66%
copy from LayoutTests/compositing/squashing/invalidations-with-large-negative-margin.html
copy to LayoutTests/paint/invalidation/spv2/invalidations-with-large-negative-margin.html
index 7fa3c34d96f58a33b8f824c493f30ea496998d68..e724f402016b1822840c77f28462b51341392d3f 100644
--- a/LayoutTests/compositing/squashing/invalidations-with-large-negative-margin.html
+++ b/LayoutTests/paint/invalidation/spv2/invalidations-with-large-negative-margin.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/squashing/invalidations-with-large-negative-margin.html -->
<!DOCTYPE html>
<div style="height:200px;width:600px;overflow:scroll">
<div style="position:relative">
@@ -7,14 +8,17 @@
</div>
</div>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
// Test that moving a Layer that is squashed relative to its squashing container repaints correctly.
// In particular, the repaint rect needs to be recorded in the correct position relative to the squashing GraphicsLayer.
-function repaintTest()
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='chip'",
+];
+function paintInvalidationTest()
{
document.getElementById('chip').style.left = "400px";
}
-runRepaintTest();
+runPaintInvalidationTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698