summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html21
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html19
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml8
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html24
5 files changed, 76 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html
new file mode 100644
index 000000000..bca5036b4
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1html.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Target Pointer</title>
+ <link href="targetpointer1htmlrules.xml" rel="its-rules"/>
+ </head>
+ <body>
+ <div id="one">
+ <p class="srcfolder">Remember last folder</p>
+ <p class="targetfolder">lastFolder</p>
+ </div>
+ <div id="two">
+ <p class="srcfile">Custom file filter:</p>
+ <p class="targetfile">testFile.txt</p>
+ </div>
+ </body>
+</html>
+
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml
new file mode 100644
index 000000000..93318581b
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer1htmlrules.xml
@@ -0,0 +1,4 @@
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class='targetfolder']"/>
+ <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class='targetfile']"/>
+ </its:rules>
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html
new file mode 100644
index 000000000..bbcbc52eb
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2html.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8"/>
+ <title>Target Pointer</title>
+ <link href="targetpointer2htmlrules.xml" rel="its-rules"/>
+ </head>
+ <body>
+ <div id="one">
+ <p class="srcfolder">Remember last folder</p>
+ <p class="targetfolder">lastFolder</p>
+ </div>
+ <div id="two">
+ <p class="srcfile">Custom file filter:</p>
+ <p class="targetfile">testFile.txt</p>
+ </div>
+ </body>
+</html>
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml
new file mode 100644
index 000000000..b26379aaf
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer2htmlrules.xml
@@ -0,0 +1,8 @@
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="targetFolder">targetfolder</its:param>
+ <its:param name="targetFile">targetfile</its:param>
+ <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class=$targetFolder]"/>
+ <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class=$targetFile]"/>
+ </its:rules>
+
+
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html
new file mode 100644
index 000000000..301911b2a
--- /dev/null
+++ b/testing/web-platform/tests/conformance-checkers/html-its/targetpointer/html/targetpointer3html.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+ <head>
+<script type="application/its+xml">
+ <its:rules version="2.0" xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml">
+ <its:param name="targetFolder">targetfolder</its:param>
+ <its:targetPointerRule selector="//h:div[@id='one']/h:p[@class='srcfolder']" targetPointer="../h:p[@class=$targetFolder]"/>
+ <its:targetPointerRule selector="//h:div[@id='two']/h:p[@class='srcfile']" targetPointer="../h:p[@class='targetfile']"/>
+ </its:rules>
+</script>
+ <meta charset="utf-8"/>
+ <title>Target Pointer</title>
+ </head>
+ <body>
+ <div id="one">
+ <p class="srcfolder">Remember last folder</p>
+ <p class="targetfolder">lastFolder</p>
+ </div>
+ <div id="two">
+ <p class="srcfile">Custom file filter:</p>
+ <p class="targetfile">testFile.txt</p>
+ </div>
+ </body>
+</html>