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

Unified Diff: LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.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/squashing-inside-preserve-3d-element.html
diff --git a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html b/LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html
similarity index 71%
copy from LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html
copy to LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html
index 5a1f56b70bc89f5683362b4e4d8d78b136648f07..f3c304bbb652cdb30b29f5c070f4c981b4ebb6cf 100644
--- a/LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html
+++ b/LayoutTests/paint/invalidation/spv2/squashing-inside-preserve-3d-element.html
@@ -1,18 +1,22 @@
+<!-- Based on compositing/squashing/squashing-inside-preserve-3d-element.html -->
<!doctype html>
<div style="-webkit-transform-style: preserve-3d">
<div style="width: 100px; height: 100px; background:lightgray; transform:translateZ(0)"></div>
<div id="target" style="position: absolute; top: 20px; left: 20px; height: 100px; width: 100px; background:lightblue"></div>
</div>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="resources/paint-invalidation-test.js"></script>
<script>
// Test that squashing works properly when inside of a transform-style: preserve-3d element. In the bug that this layout test
// was added to fix, the coordinates of the squashing layer paint invalidation rects were not recorded correctly, because some of
// the code computed transformed ancestors incorrectly (it should *not* include the preserve-3d element).
-function repaintTest() {
+window.expectedPaintInvalidationObjects = [
+ "LayoutBlockFlow (positioned) DIV id='target'",
+];
+function paintInvalidationTest() {
var target = document.getElementById('target');
target.style.background = 'red';
}
-runRepaintTest();
+runPaintInvalidationTest();
</script>

Powered by Google App Engine
This is Rietveld 408576698