Add reftest for bug 467498

This commit is contained in:
Jesse Ruderman 2010-05-29 20:27:24 -07:00
parent 82ea8773c3
commit 80894e0bce
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<g style="fill: blue;">
<g id="g1">
<rect id="rect" x="20%" width="4%" height="100%"/>
</g>
</g>
<g style="fill: green;">
<g id="g2">
<use x="20%" xlink:href="#g1"/>
</g>
</g>
<g style="fill: red;">
<use x="20%" xlink:href="#g2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 402 B

View File

@ -0,0 +1,36 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
onload="boom();">
<script><![CDATA[
// reftest for bug 467498
function boom()
{
var rect = document.getElementById("rect");
rect.setAttribute("height", "100%");
}
]]></script>
<!-- change to lime for automated testing -->
<rect width="100%" height="100%" fill="white"/>
<g style="fill: blue;">
<g id="g1">
<rect id="rect" x="20%" width="4%" height="20%"/>
</g>
</g>
<g style="fill: green;">
<g id="g2">
<use x="20%" xlink:href="#g1"/>
</g>
</g>
<g style="fill: red;">
<use x="20%" xlink:href="#g2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 690 B

View File

@ -65,6 +65,7 @@ include svg-integration/reftest.list
== dynamic-textPath-01.svg dynamic-textPath-01-ref.svg
== dynamic-use-01.svg pass.svg
== dynamic-use-02.svg pass.svg
== dynamic-use-nested-01.svg dynamic-use-nested-01-ref.svg
== linked-pattern-01.svg pass.svg
== use-01-extref.svg pass.svg
== use-02-extref.svg use-02-extref-ref.svg