| Index: LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-2.html
|
| diff --git a/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-2.html b/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-2.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1f92e9216d04c8a34df65e0a445a817687d4476d
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/custom/pattern-3-step-cycle-dynamic-2.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() {
|
| + // Add a reference from the rect in pattern#p3 to form a cycle.
|
| + document.getElementsByTagName('rect')[1].setAttribute('fill', 'url(#p1)');
|
| +}
|
| +</script>
|
| +<p>PASS if no crash (stack overflow).</p>
|
| +<svg width="100" height="100">
|
| + <rect width="100" height="100" fill="url(#p1)"/>
|
| + <pattern id="p3" width="1" height="1">
|
| + <rect 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>
|
|
|