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

Unified Diff: LayoutTests/fast/svg/getbbox.html

Issue 357943002: Fixup for test (was missing a closing tag). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/svg/getbbox.html
diff --git a/LayoutTests/fast/svg/getbbox.html b/LayoutTests/fast/svg/getbbox.html
index 3a76932ad9b70dda6a111590903098b2c17feb2a..90ba56c28a345e3dba96b4664490b9f368da6bef 100644
--- a/LayoutTests/fast/svg/getbbox.html
+++ b/LayoutTests/fast/svg/getbbox.html
@@ -21,7 +21,7 @@
<path id="p2" fill="none" stroke="red" />
<rect id="r6" x="50" y="50" width="50" height="50" fill="green" />
<!-- The following path should be included in the bbox. -->
- <path d=""
+ <path d=""/>
</g>
<g id="g4">
<polyline id="p3" fill="none" stroke="red" />
@@ -39,6 +39,10 @@
<polyline id="p6" points="47" fill="none" stroke="red" />
<rect id="r10" x="50" y="50" width="50" height="50" fill="green" />
</g>
+<g id="g8">
+ <path id="p7" d="M40 20h0" fill="none" stroke="red" />
+ <rect id="r11" x="50" y="50" width="50" height="50" fill="green" />
+</g>
</svg>
</div>
<div id=log></div>
@@ -91,5 +95,11 @@ test(function() {
test(function() {
assert_rect_approx_equals(document.getElementById("g7").getBBox(), document.getElementById("r10").getBBox(), EPSILON);
}, "polyline with no valid points doesn't contribute to parent bbox");
+test(function() {
+ assert_rect_approx_equals(document.getElementById("p7").getBBox(), {"x":40, "y":20, "width":0, "height":0 }, EPSILON);
+}, "getBBox on path with no height");
+test(function() {
+ assert_rect_approx_equals(document.getElementById("g8").getBBox(), {"x":40, "y":20, "width":60, "height":80 }, EPSILON);
+}, "path with no height should contribute to parent bbox");
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698