Index: third_party/WebKit/LayoutTests/svg/dom/svgtransformlist-empty-consolidate-and-initialize-crash.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/svgtransformlist-empty-consolidate-and-initialize-crash.html b/third_party/WebKit/LayoutTests/svg/dom/svgtransformlist-empty-consolidate-and-initialize-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d90aff46e3a6139b209221f22411a34886920e1e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/dom/svgtransformlist-empty-consolidate-and-initialize-crash.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<svg> |
+ <rect width="100" height="100"/> |
+</svg> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+var transform = document.querySelector('rect').transform; |
+var value = transform.baseVal.consolidate(); |
+try { transform.baseVal.initialize(value); } catch (e) {} |
+</script> |
+<p>PASS if no crash</p> |