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

Unified Diff: LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.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/transform-rotate-and-remove.html
diff --git a/LayoutTests/fast/repaint/transform-rotate-and-remove.html b/LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html
similarity index 66%
copy from LayoutTests/fast/repaint/transform-rotate-and-remove.html
copy to LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html
index a591ee4b12a493ad1c34939d8a8eb8016882a85c..78fbda93848ffd4fcba198fbd1d00a069392d6c4 100644
--- a/LayoutTests/fast/repaint/transform-rotate-and-remove.html
+++ b/LayoutTests/paint/invalidation/spv2/transform-rotate-and-remove.html
@@ -1,3 +1,4 @@
+<!-- Based on fast/repaint/transform-rotate-and-remove.html -->
<!DOCTYPE html>
<html>
<head>
@@ -9,14 +10,18 @@
transform:rotate(50deg);
}
</style>
- <script src="resources/text-based-repaint.js" type="text/javascript"></script>
+ <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
- function repaintTest() {
+ window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow DIV id='rel'",
+ "LayoutBlockFlow DIV id='rel'",
+ ];
+ function paintInvalidationTest() {
document.getElementById('rel').classList.remove('rotated');
}
</script>
</head>
- <body onload="runRepaintTest()">
+ <body onload="runPaintInvalidationTest()">
<!--
<p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=61338">61338</a>: Element not fully repainted after application and removal of transform </p>
<p> The test PASSES only if all the four borders of the box are displayed in green</p>

Powered by Google App Engine
This is Rietveld 408576698