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

Unified Diff: LayoutTests/svg/custom/svg-length-value-crash.svg

Issue 67483003: [SVG] Fix root element length values handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/svg-length-value-crash.svg
diff --git a/LayoutTests/svg/custom/svg-length-value-crash.svg b/LayoutTests/svg/custom/svg-length-value-crash.svg
new file mode 100644
index 0000000000000000000000000000000000000000..c6302cac723e2a217427bec9a6cca274f73df50c
--- /dev/null
+++ b/LayoutTests/svg/custom/svg-length-value-crash.svg
@@ -0,0 +1,12 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <!-- Test for http://crbugs.com/317484 -->
+ <rect width="100" height="100" fill="green"/>
+ <text y="230">PASS: did not crash.</text>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var w = document.rootElement.width.baseVal.value;
+ var h = document.rootElement.height.baseVal.value;
+ </script>
+</svg>
« no previous file with comments | « no previous file | LayoutTests/svg/custom/svg-length-value-crash-expected.txt » ('j') | Source/core/svg/SVGLengthContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698