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

Unified Diff: LayoutTests/paint/invalidation/spv2/squash-partial-repaint-inside-squashed-layer.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/squash-partial-repaint-inside-squashed-layer.html
diff --git a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html b/LayoutTests/paint/invalidation/spv2/squash-partial-repaint-inside-squashed-layer.html
similarity index 72%
copy from LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html
copy to LayoutTests/paint/invalidation/spv2/squash-partial-repaint-inside-squashed-layer.html
index 7c8e94da4aeecfa66d72cbfde9c02107adc24d1d..6d2c22964f45ab2f8e71d297c9e5007b8753c48f 100644
--- a/LayoutTests/compositing/squashing/squash-partial-repaint-inside-squashed-layer.html
+++ b/LayoutTests/paint/invalidation/spv2/squash-partial-repaint-inside-squashed-layer.html
@@ -1,3 +1,4 @@
+<!-- Based on compositing/squashing/squash-partial-repaint-inside-squashed-layer.html -->
<!DOCTYPE html>
<head>
<style>
@@ -50,13 +51,16 @@ div:hover {
}
</style>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
- function repaintTest()
+ window.expectedPaintInvalidationObjects = [
+ "LayoutImage (positioned) IMG id='repaintdiv' class='repaintdiv'",
+ ];
+ function paintInvalidationTest()
{
document.getElementById('repaintdiv').style.background = 'salmon';
}
- runRepaintTest();
+ runPaintInvalidationTest();
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698