Reftests for bug 389670 (fixed by bug 387466)
8
layout/reftests/svg/moz-only/pass.svg
Executable 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 |
9
layout/reftests/svg/moz-only/reftest.list
Executable 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
|
23
layout/reftests/svg/moz-only/xbl-basic-01.svg
Executable 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 |
14
layout/reftests/svg/moz-only/xbl-basic-02.svg
Executable 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 |
9
layout/reftests/svg/moz-only/xbl-basic-02.xbl
Executable 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>
|
29
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-binding-01.svg
Executable 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 <binding></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 |
14
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-binding-02.svg
Executable 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 <binding></title>
|
||||
|
||||
<rect width="100%" height="100%" fill="red"/>
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 445 B |
13
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-binding-02.xbl
Executable 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>
|
27
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-bound-01.svg
Executable 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 <bindings></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 |
19
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-bound-02.svg
Executable 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 |
10
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-bound-02.xbl
Executable 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>
|
37
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-resources-01.svg
Executable 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 <resources></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 |
14
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-resources-02.svg
Executable 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 <resources></title>
|
||||
|
||||
<rect width="100%" height="100%" fill="red"/>
|
||||
|
||||
</svg>
|
After Width: | Height: | Size: 449 B |
21
layout/reftests/svg/moz-only/xbl-grad-ref--grad-in-resources-02.xbl
Executable 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>
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|