From 8290e11bdbe932a0a9f687c334163c313c5ff2b9 Mon Sep 17 00:00:00 2001 From: xml-project Date: Sun, 12 May 2024 11:50:26 +0200 Subject: [PATCH] Ported p:filter tests from 1.0 test suite --- test-suite/tests/ab-filter-001.xml | 50 ++++++++++++++++++++++++++++++ test-suite/tests/ab-filter-002.xml | 49 +++++++++++++++++++++++++++++ test-suite/tests/ab-filter-003.xml | 48 ++++++++++++++++++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 test-suite/tests/ab-filter-001.xml create mode 100644 test-suite/tests/ab-filter-002.xml create mode 100644 test-suite/tests/ab-filter-003.xml diff --git a/test-suite/tests/ab-filter-001.xml b/test-suite/tests/ab-filter-001.xml new file mode 100644 index 00000000..21460efd --- /dev/null +++ b/test-suite/tests/ab-filter-001.xml @@ -0,0 +1,50 @@ + + + + p:filter-001 (AB) + + + 2024-05-12 + + Achim Berndzen + + +

Ported test from XProc (1.0) test suite.

+
+
+
+
+ +

Tests p:filter with a variable in p:with-option.

+
+ + + + + + + + + +

This is a p.

+
+
+ +
+
+
+ + + + + Root element is not 'p'. + Text content of 'p' is wrong. + + + + +
\ No newline at end of file diff --git a/test-suite/tests/ab-filter-002.xml b/test-suite/tests/ab-filter-002.xml new file mode 100644 index 00000000..474966e5 --- /dev/null +++ b/test-suite/tests/ab-filter-002.xml @@ -0,0 +1,49 @@ + + + + p:filter-002 (AB) + + + 2024-05-12 + + Achim Berndzen + + +

Ported test from XProc (1.0) test suite.

+
+
+
+
+ +

Tests p:filter with an unused element name.

+
+ + + + + + + + +

This is a p.

+
+
+
+ +
+
+ + + + + Root element is not 'result'. + Root element should have no children. + + + + +
\ No newline at end of file diff --git a/test-suite/tests/ab-filter-003.xml b/test-suite/tests/ab-filter-003.xml new file mode 100644 index 00000000..ef8f2ffc --- /dev/null +++ b/test-suite/tests/ab-filter-003.xml @@ -0,0 +1,48 @@ + + + + p:filter-003 (AB) + + + 2024-05-12 + + Achim Berndzen + + +

Ported test from XProc (1.0) test suite.

+
+
+
+
+ +

Tests p:filter.

+
+ + + + + + + + +

This is a p.

+
+
+
+
+
+ + + + + Root element is not 'p'. + Text content of 'p' is wrong. + + + + +
\ No newline at end of file