diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /dom/tests/reftest/xml-stylesheet | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/tests/reftest/xml-stylesheet')
21 files changed, 132 insertions, 0 deletions
diff --git a/dom/tests/reftest/xml-stylesheet/css_relative_href.xml b/dom/tests/reftest/xml-stylesheet/css_relative_href.xml new file mode 100644 index 0000000000..8576e56d8f --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/css_relative_href.xml @@ -0,0 +1,2 @@ +<?xml-stylesheet type="text/css" href="passer.css"?> +<element/> diff --git a/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml new file mode 100644 index 0000000000..8576e56d8f --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml @@ -0,0 +1,2 @@ +<?xml-stylesheet type="text/css" href="passer.css"?> +<element/> diff --git a/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml^headers^ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml^headers^ new file mode 100644 index 0000000000..581aae3439 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external.xml^headers^ @@ -0,0 +1 @@ +Link: <failer.css>;rel="stylesheet";type="text/css" diff --git a/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml new file mode 100644 index 0000000000..7859e6078c --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml @@ -0,0 +1,2 @@ +<?xml-stylesheet type="text/css" href="failer.css"?> +<element/> diff --git a/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml^headers^ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml^headers^ new file mode 100644 index 0000000000..f9e96867b6 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/css_relative_href_also_external_override.xml^headers^ @@ -0,0 +1 @@ +Link: <passer_override.css>;rel="stylesheet";type="text/css" diff --git a/dom/tests/reftest/xml-stylesheet/embedded_dtd_id.svg b/dom/tests/reftest/xml-stylesheet/embedded_dtd_id.svg new file mode 100644 index 0000000000..dee0d44f0d --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/embedded_dtd_id.svg @@ -0,0 +1,20 @@ +<!DOCTYPE svg:svg [<!ATTLIST transform id ID #IMPLIED>]> +<?xml-stylesheet type="application/xml" href="#transform"?> +<svg:svg xmlns="http://www.w3.org/1999/XSL/Transform" + xmlns:svg="http://www.w3.org/2000/svg"> + <svg:defs> + <transform id="transform" version="1.0"> + <template match="node()|@*"> + <copy> + <apply-templates select="@*"/> + <apply-templates/> + </copy> + </template> + <template match="svg:defs"/> + <template match="@fill"> + <attribute name="fill">lime</attribute> + </template> + </transform> + </svg:defs> + <svg:rect width="100%" height="100%" fill="red"/> +</svg:svg> diff --git a/dom/tests/reftest/xml-stylesheet/error_no_href.svg b/dom/tests/reftest/xml-stylesheet/error_no_href.svg new file mode 100644 index 0000000000..63719f9302 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/error_no_href.svg @@ -0,0 +1,8 @@ +<?xml-stylesheet type="application/xml"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xslt:version="1.0"> + <rect width="100%" height="100%" fill="lime"> + <xslt:attribute name="fill">red</xslt:attribute> + </rect> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/fail.svg b/dom/tests/reftest/xml-stylesheet/fail.svg new file mode 100644 index 0000000000..fcffde5235 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/fail.svg @@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg"> + <desc>Fail</desc> + <rect width="100%" height="100%" fill="red"/> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/failer.css b/dom/tests/reftest/xml-stylesheet/failer.css new file mode 100644 index 0000000000..08f46a7a8f --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/failer.css @@ -0,0 +1 @@ +:root { background: red; } diff --git a/dom/tests/reftest/xml-stylesheet/lreas_selflink_dtd_id.svg b/dom/tests/reftest/xml-stylesheet/lreas_selflink_dtd_id.svg new file mode 100644 index 0000000000..8c05fc8b5b --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/lreas_selflink_dtd_id.svg @@ -0,0 +1,9 @@ +<!DOCTYPE svg [<!ATTLIST svg id ID #IMPLIED>]> +<?xml-stylesheet type="application/xml" href="#transform"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + id="transform" xslt:version="1.0"> + <rect width="100%" height="100%" fill="red"> + <xslt:attribute name="fill">lime</xslt:attribute> + </rect> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/lreas_selflink_empty_href.svg b/dom/tests/reftest/xml-stylesheet/lreas_selflink_empty_href.svg new file mode 100644 index 0000000000..5a995697b4 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/lreas_selflink_empty_href.svg @@ -0,0 +1,8 @@ +<?xml-stylesheet type="application/xml" href=""?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xslt:version="1.0"> + <rect width="100%" height="100%" fill="red"> + <xslt:attribute name="fill">lime</xslt:attribute> + </rect> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/lreas_selflink_relative_href.svg b/dom/tests/reftest/xml-stylesheet/lreas_selflink_relative_href.svg new file mode 100644 index 0000000000..e8d62584f9 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/lreas_selflink_relative_href.svg @@ -0,0 +1,9 @@ +<?xml-stylesheet type="application/xml" + href="lreas_selflink_relative_href.svg"?> +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xslt:version="1.0"> + <rect width="100%" height="100%" fill="red"> + <xslt:attribute name="fill">lime</xslt:attribute> + </rect> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/pass.svg b/dom/tests/reftest/xml-stylesheet/pass.svg new file mode 100644 index 0000000000..65780d0f02 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/pass.svg @@ -0,0 +1,4 @@ +<svg xmlns="http://www.w3.org/2000/svg"> + <desc>Pass</desc> + <rect width="100%" height="100%" fill="lime"/> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/passer.css b/dom/tests/reftest/xml-stylesheet/passer.css new file mode 100644 index 0000000000..642b7cc108 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/passer.css @@ -0,0 +1 @@ +:root { background: lime; } diff --git a/dom/tests/reftest/xml-stylesheet/passer_override.css b/dom/tests/reftest/xml-stylesheet/passer_override.css new file mode 100644 index 0000000000..671e9e47bd --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/passer_override.css @@ -0,0 +1 @@ +:root { background: lime !important; } diff --git a/dom/tests/reftest/xml-stylesheet/reftest.list b/dom/tests/reftest/xml-stylesheet/reftest.list new file mode 100644 index 0000000000..caf3920cb1 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/reftest.list @@ -0,0 +1,12 @@ +== css_relative_href.xml pass.svg +HTTP == css_relative_href_also_external.xml pass.svg +HTTP == css_relative_href_also_external_override.xml pass.svg +== embedded_dtd_id.svg pass.svg +!= error_no_href.svg fail.svg +fails == lreas_selflink_dtd_id.svg pass.svg # fails after bug 631575 +== lreas_selflink_empty_href.svg pass.svg +== lreas_selflink_relative_href.svg pass.svg +== xslt_relative_href.svg pass.svg +== xslt_selflink_dtd_id.xml pass.svg +== xslt_selflink_empty_href.xml pass.svg +== xslt_selflink_relative_href.xml pass.svg diff --git a/dom/tests/reftest/xml-stylesheet/svg_passer.xslt b/dom/tests/reftest/xml-stylesheet/svg_passer.xslt new file mode 100644 index 0000000000..392127cee5 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/svg_passer.xslt @@ -0,0 +1,11 @@ +<transform xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <template match="node()|@*"> + <copy> + <apply-templates select="@*"/> + <apply-templates/> + </copy> + </template> + <template match="@fill"> + <attribute name="fill">lime</attribute> + </template> +</transform> diff --git a/dom/tests/reftest/xml-stylesheet/xslt_relative_href.svg b/dom/tests/reftest/xml-stylesheet/xslt_relative_href.svg new file mode 100644 index 0000000000..33231847f7 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/xslt_relative_href.svg @@ -0,0 +1,4 @@ +<?xml-stylesheet type="application/xml" href="svg_passer.xslt"?> +<svg xmlns="http://www.w3.org/2000/svg"> + <rect width="100%" height="100%" fill="red"/> +</svg> diff --git a/dom/tests/reftest/xml-stylesheet/xslt_selflink_dtd_id.xml b/dom/tests/reftest/xml-stylesheet/xslt_selflink_dtd_id.xml new file mode 100644 index 0000000000..626738b1b4 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/xslt_selflink_dtd_id.xml @@ -0,0 +1,11 @@ +<!DOCTYPE xslt:transform [<!ATTLIST xslt:transform id ID #IMPLIED>]> +<?xml-stylesheet type="application/xml" href="#transform"?> +<xslt:transform xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/2000/svg" + id="transform" version="1.0"> + <xslt:template match="/xslt:transform"> + <svg> + <rect width="100%" height="100%" fill="lime"/> + </svg> + </xslt:template> +</xslt:transform> diff --git a/dom/tests/reftest/xml-stylesheet/xslt_selflink_empty_href.xml b/dom/tests/reftest/xml-stylesheet/xslt_selflink_empty_href.xml new file mode 100644 index 0000000000..9e0834b7ed --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/xslt_selflink_empty_href.xml @@ -0,0 +1,10 @@ +<?xml-stylesheet type="application/xml" href=""?> +<xslt:transform xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/2000/svg" + version="1.0"> + <xslt:template match="/xslt:transform"> + <svg> + <rect width="100%" height="100%" fill="lime"/> + </svg> + </xslt:template> +</xslt:transform> diff --git a/dom/tests/reftest/xml-stylesheet/xslt_selflink_relative_href.xml b/dom/tests/reftest/xml-stylesheet/xslt_selflink_relative_href.xml new file mode 100644 index 0000000000..88d06a7296 --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/xslt_selflink_relative_href.xml @@ -0,0 +1,11 @@ +<?xml-stylesheet type="application/xml" + href="xslt_selflink_relative_href.xml"?> +<xslt:transform xmlns:xslt="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/2000/svg" + version="1.0"> + <xslt:template match="/xslt:transform"> + <svg> + <rect width="100%" height="100%" fill="lime"/> + </svg> + </xslt:template> +</xslt:transform> |