Bug 1361639 - Part 2. Add test cases of calling getBBox on use element in test_bbox.xhtml.
MozReview-Commit-ID: B2DetAVcQM6
--- a/dom/svg/test/bbox-helper.svg
+++ b/dom/svg/test/bbox-helper.svg
@@ -30,9 +30,12 @@
<polygon/>
<!-- or an empty text element -->
<text x="185" y="25"/>
<circle cx="100" cy="100" r="5"/>
<g/>
<circle cx="100" cy="100" r="5"/>
<g/>
</g>
+ <use x="100" y="100" id="use_v" href="#v"/>
+ <use x="100" y="100" id="use_h" href="#h"/>
+ <use x="100" y="100" id="use_e" href="#e"/>
</svg>
--- a/dom/svg/test/test_bbox.xhtml
+++ b/dom/svg/test/test_bbox.xhtml
@@ -57,17 +57,19 @@ function run()
checkBBox("i", 10, 10, 100, 100, 0.0);
compareBBoxHeight("a", "b");
compareBBoxHeight("a", "y");
compareBBox("b", "tspan");
compareBBoxHeight("text", "lrmText");
checkBBox("v", 95, 45, 10, 155, 0.001);
checkBBox("h", 195, 45, 105, 55, 0.001);
checkBBox("e", 95, 95, 10, 10, 0.001);
-
+ checkBBox("use_v", 195, 145, 10, 155, 0.001);
+ checkBBox("use_h", 295, 145, 105, 55, 0.001);
+ checkBBox("use_e", 195, 195, 10, 10, 0.001);
SimpleTest.finish();
}
window.addEventListener("load", run);
//]]></script>
</pre>
</body>