diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/tests/reftest/xml-stylesheet | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/tests/reftest/xml-stylesheet')
22 files changed, 145 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 000000000..8576e56d8 --- /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 000000000..8576e56d8 --- /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 000000000..581aae343 --- /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 000000000..7859e6078 --- /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 000000000..f9e96867b --- /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 000000000..dee0d44f0 --- /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 000000000..63719f930 --- /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 000000000..fcffde523 --- /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 000000000..08f46a7a8 --- /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 000000000..8c05fc8b5 --- /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 000000000..5a995697b --- /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 000000000..e8d62584f --- /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 000000000..65780d0f0 --- /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 000000000..642b7cc10 --- /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 000000000..671e9e47b --- /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-stylo.list b/dom/tests/reftest/xml-stylesheet/reftest-stylo.list new file mode 100644 index 000000000..8d2e1e32d --- /dev/null +++ b/dom/tests/reftest/xml-stylesheet/reftest-stylo.list @@ -0,0 +1,13 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== css_relative_href.xml css_relative_href.xml +HTTP == css_relative_href_also_external.xml css_relative_href_also_external.xml +HTTP == css_relative_href_also_external_override.xml css_relative_href_also_external_override.xml +== embedded_dtd_id.svg embedded_dtd_id.svg +== error_no_href.svg error_no_href.svg +== lreas_selflink_dtd_id.svg lreas_selflink_dtd_id.svg +== lreas_selflink_empty_href.svg lreas_selflink_empty_href.svg +== lreas_selflink_relative_href.svg lreas_selflink_relative_href.svg +== xslt_relative_href.svg xslt_relative_href.svg +== xslt_selflink_dtd_id.xml xslt_selflink_dtd_id.xml +== xslt_selflink_empty_href.xml xslt_selflink_empty_href.xml +== xslt_selflink_relative_href.xml xslt_selflink_relative_href.xml diff --git a/dom/tests/reftest/xml-stylesheet/reftest.list b/dom/tests/reftest/xml-stylesheet/reftest.list new file mode 100644 index 000000000..1e485d8d8 --- /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 +== 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 000000000..392127cee --- /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 000000000..33231847f --- /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 000000000..626738b1b --- /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 000000000..9e0834b7e --- /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 000000000..88d06a729 --- /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> |