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

Unified Diff: LayoutTests/svg/repaint/shape-transform-change.html

Issue 260963012: Override repaintTreeAfterLayout for RenderSVGModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adjust TC again for increased resilience to platform differences. Created 6 years, 7 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/shape-transform-change-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/repaint/shape-transform-change.html
diff --git a/LayoutTests/svg/repaint/shape-transform-change.html b/LayoutTests/svg/repaint/shape-transform-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..f3a1a429972a3902b5c0c69afe2ec7f7dbb30ddc
--- /dev/null
+++ b/LayoutTests/svg/repaint/shape-transform-change.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
+<script>
+window.testIsAsync = true;
+window.onload = runRepaintTest;
+
+function repaintTest() {
+ runAfterDisplay(function() {
+ document.getElementsByTagName('rect')[1].setAttribute('transform', 'scale(2)');
+ if (window.testRunner)
+ finishRepaintTest();
+ });
+};
+</script>
+<svg width="200" height="200">
+ <rect width="200" height="200" fill="red"/>
+ <rect width="100" height="100" fill="green"/>
+</svg>
+<p>Test if applying a transform to a &lt;rect> properly repaints the &lt;rect>.</p>
+<p>Pass if there's a green 200x200 (px) rectangle below, and no red visible.</p>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/shape-transform-change-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698