diff options
Diffstat (limited to 'tests/ITS-2.0-Testsuite/inputdata/localefilter/html')
7 files changed, 86 insertions, 0 deletions
diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1html.html b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1html.html new file mode 100644 index 0000000..72f9604 --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + <link href="locale1htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> + diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1htmlrules.xml b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1htmlrules.xml new file mode 100644 index 0000000..d87c7f9 --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale1htmlrules.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:localeFilterRule selector="//h:div[@id='Canada']" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale2html.html b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale2html.html new file mode 100644 index 0000000..6e2870f --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale2html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div its-locale-filter-list="en-CA, fr-CA" id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3html.html b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3html.html new file mode 100644 index 0000000..5f84080 --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3html.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"/> + <title>Locale filter</title> + <link href="locale3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> + diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3htmlrules.xml b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3htmlrules.xml new file mode 100644 index 0000000..9f44ede --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale3htmlrules.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="localeParam">Canada</its:param> + <its:localeFilterRule selector="//h:div[@id=$localeParam]" localeFilterList="en-CA, fr-CA"/> +</its:rules> diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale4html.html b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale4html.html new file mode 100644 index 0000000..d8effcd --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale4html.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <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="localeParam">Canada</its:param> + <its:localeFilterRule selector="//h:div[@id=$localeParam]" localeFilterList="en-CA, fr-CA"/> + </its:rules> + </script> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div id="Canada"> + <p>This legal notice is only for Canadian locales.</p> + </div> + </body> +</html> diff --git a/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale5html.html b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale5html.html new file mode 100644 index 0000000..fe5b016 --- /dev/null +++ b/tests/ITS-2.0-Testsuite/inputdata/localefilter/html/locale5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8> + <title>Locale filter</title> + </head> + <body> + <div its-locale-filter-list="*-ca"> + <p>Text for Canadian locales.</p> + </div> + <div its-locale-filter-list="*-ca" its-locale-filter-type="exclude"> + <p>Text for non-Canadian locales.</p> + </div> + <div its-locale-filter-list="*" its-locale-filter-type="ExCluDE"> + <p>Text for no locales.</p> + </div> + <div its-locale-filter-list="" its-locale-filter-type="EXCLude"> + <p>Text for all locales.</p> + </div> + </body> +</html> |