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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/svgtransformlist-empty-consolidate-and-initialize-crash.html

Issue 2681803004: SVGTransformList.consolidate() should return null on an empty list (Closed)
Patch Set: Created 3 years, 10 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: 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>

Powered by Google App Engine
This is Rietveld 408576698