diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/storagesize')
18 files changed, 141 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html new file mode 100644 index 0000000000..f2dad64387 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize1html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Storage Size</title> + </head> + <body> + <p>String to translate:</p> + <p contenteditable="true" id="123" its-storage-size="25" its-storage-encoding="ISO-8859-1" its-line-break-type="LF">Papua New-Guinea</p> + <p contenteditable="true" id="139" its-storage-size="25" its-storage-encoding="ISO-8859-1" its-line-break-type="lF">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html new file mode 100644 index 0000000000..ff1b5bdf8c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>Storage Size</title> + <link href="storagesize2htmlrules.xml" rel="its-rules"> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.xml new file mode 100644 index 0000000000..93d0bfa61f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize2htmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:storageSizeRule selector="//h:p" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html new file mode 100644 index 0000000000..364e97f8ae --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3html.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Storage Size</title> + <link href="storagesize3htmlrules.xml" rel="its-rules"> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.xml new file mode 100644 index 0000000000..4e8b23d3d5 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize3htmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:param name="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//h:p[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html new file mode 100644 index 0000000000..4ec272a4d3 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/html/storagesize4html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <script type="application/its+xml"> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:param name="storagesizePapParam">123</its:param> + <its:param name="storagesizeDomParam">139</its:param> + <its:storageSizeRule selector="//h:p[@id=$storagesizePapParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + <its:storageSizeRule selector="//h:p[@id=$storagesizeDomParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Storage Size</title> + </head> + <body> + <b>String to translate:</b> + <p contenteditable="true" id="123">Papua New-Guinea</p> + <p contenteditable="true" id="139">Dominican Replubic</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml new file mode 100644 index 0000000000..c003af2ce7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize1xml.xml @@ -0,0 +1,10 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//country" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml new file mode 100644 index 0000000000..343b4b4a9f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize2xml.xml @@ -0,0 +1,8 @@ +<fields> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//field" storageSizePointer="@max" storageEncodingPointer="@encoding"/> + </its:rules> + <field type="country" id="123" max="25" encoding="ISO-8859-1">Papouasie-Nouvelle-Guinée</field> + <field type="country" id="139" max="25" encoding="ISO-8859-1">République Dominicaine</field> +</fields> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml new file mode 100644 index 0000000000..02b07d946c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xml.xml @@ -0,0 +1,8 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="storagesize3xmlrules.xml"/> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml new file mode 100644 index 0000000000..0813511020 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize3xmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//country" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml new file mode 100644 index 0000000000..a48879007b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xml.xml @@ -0,0 +1,6 @@ +<fields> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="storagesize4xmlrules.xml"/> + <field type="country" id="123" max="25" encoding="ISO-8859-1">Papouasie-Nouvelle-Guinée</field> + <field type="country" id="139" max="25" encoding="ISO-8859-1">République Dominicaine</field> +</fields> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml new file mode 100644 index 0000000000..50be2ad803 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize4xmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:storageSizeRule selector="//field" storageSizePointer="@max" storageEncodingPointer="@encoding"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml new file mode 100644 index 0000000000..cf7ff61030 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize5xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <var num="panelA1_Continue" its:storageSize="8" its:storageEncoding="UTF-16">CONTINUE</var> + <var num="panelA1_Stop" its:storageSize="8" its:storageEncoding="UTF-16">STOP</var> + <var num="panelB5_Cancel" its:storageSize="12" its:storageEncoding="UTF-16">CANCEL</var> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml new file mode 100644 index 0000000000..21cfbae15d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize6xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <var num="panelA1_Continue" its:storageSize="8" its:storageEncoding="UTF-16" its:lineBreakType="lf">CONTINUE</var> + <var num="panelA1_Stop" its:storageSize="8" its:storageEncoding="UTF-16" its:lineBreakType="lf">STOP</var> + <var num="panelB5_Cancel" its:storageSize="12" its:storageEncoding="UTF-16" its:lineBreakType="lf">CANCEL</var> +</messages> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml new file mode 100644 index 0000000000..d090b0da64 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xml.xml @@ -0,0 +1,8 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="storagesize7xmlrules.xml"/> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml new file mode 100644 index 0000000000..8df636ef7a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize7xmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//country[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml new file mode 100644 index 0000000000..8044869de4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize8xml.xml @@ -0,0 +1,11 @@ +<db> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="storagesizeParam">123</its:param> + <its:storageSizeRule selector="//country[@id=$storagesizeParam]" storageSize="25" storageEncoding="ISO-8859-1"/> + </its:rules> + <data> + <country id="123">Papouasie-Nouvelle-Guinée</country> + <country id="139">République Dominicaine</country> + </data> +</db> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml new file mode 100644 index 0000000000..e464ed6d04 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/storagesize/xml/storagesize9xml.xml @@ -0,0 +1,5 @@ +<messages xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <its:span storageSize="8" storageEncoding="UTF-16" lineBreakType="lf">CONTINUE</its:span> + <its:span storageSize="8" storageEncoding="UTF-16" lineBreakType="lf">STOP</its:span> + <its:span storageSize="12" storageEncoding="UTF-16" lineBreakType="lf">CANCEL</its:span> +</messages> |