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

Unified Diff: LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1.html

Issue 303693009: Make SVGResourcesCycleSolver check for cycles beyond one level (and more) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add dynamic tests. 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
Index: LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1.html
diff --git a/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1.html b/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..62e2f91bbcb4483563b9fb1c100c0d061ba25d8c
--- /dev/null
+++ b/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ window.onload = function() {
+ testRunner.displayAsyncThen(function() {
+ mutateTree();
+ testRunner.displayAsyncThen(function() {
+ testRunner.notifyDone();
+ });
+ });
+ };
+} else {
+ window.onload = function() { setTimeout(mutateTree, 100); };
+}
+function mutateTree() {
+ // A reference from the 'rect' to the pattern cycle.
+ document.getElementsByTagName('rect')[0].setAttribute('fill', 'url(#p1)');
+}
+</script>
+<p>PASS if no crash (stack overflow).</p>
+<svg width="100" height="100">
+ <rect width="100" height="100"/>
+ <pattern id="p3" width="1" height="1">
+ <rect fill="url(#p1)" width="100" height="100"/>
+ </pattern>
+ <pattern id="p2" width="1" height="1">
+ <rect fill="url(#p3)" width="100" height="100"/>
+ </pattern>
+ <pattern id="p1" width="1" height="1">
+ <rect fill="url(#p2)" width="100" height="100"/>
+ </pattern>
+</svg>
« no previous file with comments | « LayoutTests/svg/custom/pattern-3-step-cycle.html ('k') | LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698