diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/translate/html')
12 files changed, 194 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html new file mode 100644 index 000000000..e31fcae0f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1html.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>HTML Link Example</title> + <link href="translate1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <img src="smiley.gif" alt="Smiley face" width="42" height="42"/> + <p id="100" title="Text"> + This is the first paragraph. It has some + <code>un-translatable code</code> + . + </p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.xml new file mode 100644 index 000000000..bd51763af --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate1htmlrules.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:translateRule selector="//h:code" translate="no"/> + <its:translateRule selector="//h:link" translate="no"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html new file mode 100644 index 000000000..576eaea3a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate2html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> + <html lang="en"> + <head> + <meta charset=utf-8> + <title>The Life of a Simple Man</title> + </head> + <body> + <p> + <img src="smiley.gif" alt="Smiley face" width="42" height="42"/> + Everything started when Zebulon discovered that he had a + <span translate="NO">doppelgänger</span> + who was a serious baseball + <span translate="nO">aficionado</span> + . + </p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html new file mode 100644 index 000000000..a88bd1ac6 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3html.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="translate3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span translate="yes">The Life of a Simple Man</span> + <!-- + Note that the contents of <b> and <span> should end up *not* translatable with these settings + --> + <section title="section one"> + <h2>section one</h2> + <p> + Everything started when Zebulon discovered that he had a + <span>doppelgänger</span> + who was a serious baseball + <span>aficionado</span> + . + </p> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.xml new file mode 100644 index 000000000..6193ec01d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate3htmlrules.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:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html new file mode 100644 index 000000000..a2a4d9585 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4html.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="translate4htmlrules.xml" rel="its-rules"/> + </head> + <body> + <span translate="yes">The Life of a Simple Man</span> + <!-- + Note that the contents of <b> and <span> should end up *not* translatable with these settings + --> + <section> + <h2>section</h2> + <p> + Everything started when Zebulon discovered that he had a + <span>doppelgänger</span> + who was a serious baseball + <span>aficionado</span> + . + </p> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.xml new file mode 100644 index 000000000..c252a2de8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate4htmlrules.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:translateRule selector="/h:html" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html new file mode 100644 index 000000000..c64c0cd50 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5html.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>The ITS Topic</title> + <link href="translate5htmlrules.xml" rel="its-rules"/> + </head> + <body> + <section> + <h2>Data category</h2> + <span id="tDataCat"> + <b>Data category</b> + <cite> + ITS defines + <i>data category</i> + as an abstract concept for a particular type of information for internationalization and localization of XML schemas and documents. + </cite> + </span> + </section> + <p> + For the implementation of ITS, apply the rules in the order: + </p> + <ul> + <li>Default</li> + <li>Rules in the schema</li> + <li>Rules in the document instance</li> + <li>Local attributes</li> + </ul> + <p> + <span lang="fr">Et voila !</span> + The last rule wins. + </p> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.xml new file mode 100644 index 000000000..6193ec01d --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate5htmlrules.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:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html new file mode 100644 index 000000000..82cc62c98 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6html.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>The ITS Topic</title> + <link href="translate6htmlrules.xml" rel="its-rules"/> + </head> + <body> + <section> + <h2>Data category</h2> + <span id="tDataCat"> + <b>Data category</b> + <cite> + ITS defines + <i>data category</i> + as an abstract concept for a particular type of information for internationalization and localization of XML schemas and documents. + </cite> + </span> + </section> + <p> + For the implementation of ITS, apply the rules in the order: + </p> + <ul> + <li>Default</li> + <li>Rules in the schema</li> + <li>Rules in the document instance</li> + <li>Local attributes</li> + </ul> + <p> + <span lang="fr">Et voila !</span> + The last rule wins. + </p> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.xml new file mode 100644 index 000000000..dadbad167 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate6htmlrules.xml @@ -0,0 +1,6 @@ +<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="tDataCatParam">tDataCat</its:param> +<its:translateRule selector="//h:*" translate="no"/> +<its:translateRule selector="//h:p" translate="yes"/> +<its:translateRule selector="//h:span[@id=$tDataCatParam]" translate="yes"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html new file mode 100644 index 000000000..c17322df8 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/translate/html/translate7html.html @@ -0,0 +1,19 @@ +<!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="translateparam">name</its:param> + <its:translateRule selector="//h:*[@id=$translateparam]" translate="no"/> + </its:rules> +</script> + <meta charset="utf-8"/> + <title>Example</title> + </head> + <body title="login details"> +<p style="color:green">Login names can only use letters from A to Z (upper or lowercase) + For example: <code id="name">Huck_Finn</code>.</p> + </body> +</html> + + |