Reftests for bug 389670 (fixed by bug 387466)

This commit is contained in:
jwatt@jwatt.org 2007-12-03 03:36:24 -08:00
parent ec02d9286c
commit ed7fc785db
16 changed files with 251 additions and 1 deletions

View File

@ -0,0 +1,8 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<title>Testcase reference file for generic pass condition</title>
<rect width="100%" height="100%" fill="lime"/>
</svg>

After

Width:  |  Height:  |  Size: 297 B

View File

@ -0,0 +1,9 @@
== xbl-basic-01.svg pass.svg
== xbl-basic-02.svg pass.svg
== xbl-grad-ref--grad-in-binding-01.svg pass.svg
== xbl-grad-ref--grad-in-binding-02.svg pass.svg
== xbl-grad-ref--grad-in-bound-01.svg pass.svg
fails == xbl-grad-ref--grad-in-bound-02.svg pass.svg
fails == xbl-grad-ref--grad-in-resources-01.svg pass.svg
fails == xbl-grad-ref--grad-in-resources-02.svg pass.svg

View File

@ -0,0 +1,23 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" style="-moz-binding: url(#lime);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test XBL bindings inline in an SVG file can be used in the SVG</title>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<content>
<children/>
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="lime"/>
</content>
</binding>
</bindings>
<rect width="100%" height="100%" fill="red"/>
</svg>

After

Width:  |  Height:  |  Size: 659 B

View File

@ -0,0 +1,14 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg"
style="-moz-binding: url(xbl-basic-02.xbl#lime);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test XBL bindings in an external file can be used by SVG</title>
<rect width="100%" height="100%" fill="red"/>
</svg>

After

Width:  |  Height:  |  Size: 415 B

View File

@ -0,0 +1,9 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<content>
<children/>
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="lime"/>
</content>
</binding>
</bindings>

View File

@ -0,0 +1,29 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test gradient reference in binding for gradient in &lt;binding&gt;</title>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<content>
<children/>
<g xmlns="http://www.w3.org/2000/svg">
<linearGradient id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="lime"/>
</linearGradient>
<rect width="100%" height="100%" fill="url(#grad)"/>
</g>
</content>
</binding>
</bindings>
<rect width="100%" height="100%" fill="red"/>
<g style="-moz-binding: url(#lime);"/>
</svg>

After

Width:  |  Height:  |  Size: 824 B

View File

@ -0,0 +1,14 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg"
style="-moz-binding: url(xbl-grad-ref--grad-in-binding-02.xbl#lime);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test gradient reference in binding for gradient in &lt;binding&gt;</title>
<rect width="100%" height="100%" fill="red"/>
</svg>

After

Width:  |  Height:  |  Size: 445 B

View File

@ -0,0 +1,13 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<content>
<children/>
<g xmlns="http://www.w3.org/2000/svg">
<linearGradient id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="lime"/>
</linearGradient>
<rect width="100%" height="100%" fill="url(#grad)"/>
</g>
</content>
</binding>
</bindings>

View File

@ -0,0 +1,27 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" style="-moz-binding: url(#lime);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test gradient reference in binding for gradient outside &lt;bindings&gt;</title>
<linearGradient id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="lime"/>
</linearGradient>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<content>
<children/>
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="url(#grad)"/>
</content>
</binding>
</bindings>
<rect width="100%" height="100%" fill="red"/>
</svg>

After

Width:  |  Height:  |  Size: 786 B

View File

@ -0,0 +1,19 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg"
style="-moz-binding: url(xbl-grad-ref--grad-in-bound-02.xbl#red);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test SVG in XBL can't reference gradient in the bound document</title>
<!-- SVG in the binding should not be able to reference this gradient -->
<linearGradient id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="red"/>
</linearGradient>
<rect width="100%" height="100%" fill="lime"/>
</svg>

After

Width:  |  Height:  |  Size: 625 B

View File

@ -0,0 +1,10 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="red">
<content>
<children/>
<!-- gradient reference should fail, fill should fall back to black -->
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="url(#grad)"/>
</content>
</binding>
</bindings>

View File

@ -0,0 +1,37 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test gradient reference in binding for gradient in &lt;resources&gt;</title>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<resources>
<!-- don't need <svg> - only used to eliminate its omission as a problem -->
<svg xmlns="http://www.w3.org/2000/svg">
<linearGradient xmlns="http://www.w3.org/2000/svg"
id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="lime"/>
</linearGradient>
</svg>
</resources>
<content>
<children/>
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="url(#grad)"/>
</content>
</binding>
</bindings>
<rect width="100%" height="100%" fill="red"/>
<g style="-moz-binding: url(#lime);"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,14 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg"
style="-moz-binding: url(xbl-grad-ref--grad-in-resources-02.xbl#lime);">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=389670 -->
<title>Test gradient reference in binding for gradient in &lt;resources&gt;</title>
<rect width="100%" height="100%" fill="red"/>
</svg>

After

Width:  |  Height:  |  Size: 449 B

View File

@ -0,0 +1,21 @@
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="lime">
<resources>
<!-- don't need <svg> - only used to eliminate its omission as a problem -->
<svg xmlns="http://www.w3.org/2000/svg">
<linearGradient xmlns="http://www.w3.org/2000/svg"
id="grad" gradientUnits="userSpaceOnUse">
<stop stop-color="lime"/>
</linearGradient>
</svg>
</resources>
<content>
<children/>
<rect xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" fill="url(#grad)"/>
</content>
</binding>
</bindings>

View File

@ -5,6 +5,9 @@ include bugs/reftest.list
# sizing tests
include sizing/reftest.list
# Mozilla only tests (i.e. those containing XUL/XBL/etc.)
include moz-only/reftest.list
== clipPath-basic-01.svg pass.svg
== foreignObject-01.svg pass.svg
== foreignObject-ancestor-style-change-01.svg foreignObject-ancestor-style-change-01-ref.svg

View File

@ -307,5 +307,5 @@ fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == object--auto-auto--px-0.html ob
skip == dynamic--inline-resize-window-height.xhtml pass.svg # XXX breaks the reftest run as the window height somehow is not restored
== dynamic--inline-resize-window-width.xhtml pass.svg
fails == dynamic--object-svg-unloaded.xhtml pass.svg
# == dynamic--object--auto-auto--pct-px.html