Skip to content

Commit

Permalink
Update WCAG policy test files
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Apr 1, 2023
1 parent 0c7e5ac commit 23607de
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
3 changes: 1 addition & 2 deletions WCAG-21/PDFUA-Ref-2-01_Magazine-danish.sch
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@

<sch:pattern name = "Checking the validationReport: rules">
<sch:rule context="/report/jobs/job/validationReport/details">
<sch:assert test="(@failedRules = '15')">Failed check, Expected: 15</sch:assert>
<sch:assert test="(@failedRules = '14')">Failed check, Expected: 14</sch:assert>
</sch:rule>

<sch:rule context="/report/jobs/job/validationReport/details/rule">
<sch:assert test="(@clause = '1.4.3' and @testNumber = '1' and @failedChecks = '58') or
(@clause = '1.3.1' and @testNumber = '3' and @failedChecks = '2') or
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '37') or
(@clause = '1.3.1' and @testNumber = '2' and @failedChecks = '3') or
(@clause = '1.4.4' and @testNumber = '1' and @failedChecks = '22') or
(@clause = '4.1.2' and @testNumber = '22' and @failedChecks = '1') or
(@clause = '4.1.2' and @testNumber = '46' and @failedChecks = '3') or
(@clause = '4.1.2' and @testNumber = '47' and @failedChecks = '1') or
Expand Down
4 changes: 2 additions & 2 deletions WCAG-21/PDFUA-in-a-Nutshell-PDFUA.sch
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(@clause = '7.1' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '7.21.4.2' and @testNumber = '2' and @failedChecks = '1') or
(@clause = '7.2' and @testNumber = '11' and @failedChecks = '1') or
(@clause = '7.5' and @testNumber = '1' and @failedChecks = '8') or
(@clause = '7.5' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '1.3.1' and @testNumber = '2' and @failedChecks = '1') or
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '86') or
(@clause = '1.4.3' and @testNumber = '1' and @failedChecks = '10') or
Expand All @@ -37,7 +37,7 @@
7.1-1, 1 check, or
7.21.4.2-2, 1 check, or
7.2-11, 1 check, or
7.5-1, 8 checks, or
7.5-1, 1 check, or
1.3.1-2, 1 check, or
1.3.1-4, 86 checks, or
1.4.3-1, 10 checks, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<sch:rule context="/report/jobs/job/validationReport/details/rule">
<sch:assert test="(@clause = '4.1.2' and @testNumber = '28' and @failedChecks = '8') or
(@clause = '4.1.2' and @testNumber = '10' and @failedChecks = '10') or
(@clause = '4.1.2' and @testNumber = '10' and @failedChecks = '11') or
(@clause = '4.1.2' and @testNumber = '35' and @failedChecks = '4') or
(@clause = '1.3.1' and @testNumber = '2' and @failedChecks = '2') or
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '116') or
Expand All @@ -30,7 +30,7 @@
(@clause = '7.2' and @testNumber = '20' and @failedChecks = '15') or
(@clause = '1.3.1' and @testNumber = '3' and @failedChecks = '1')">Failed rules, Expected:
4.1.2-28, 8 checks, or
4.1.2-10, 10 checks, or
4.1.2-10, 11 checks, or
4.1.2-35, 4 checks, or
1.3.1-2, 2 checks, or
1.3.1-4, 116 checks, or
Expand Down
8 changes: 3 additions & 5 deletions WCAG-21/real-world-documents/resume.sch
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,22 @@

<sch:pattern name = "Checking the validationReport: rules">
<sch:rule context="/report/jobs/job/validationReport/details">
<sch:assert test="(@failedRules = '8')">Failed check, Expected: 8</sch:assert>
<sch:assert test="(@failedRules = '7')">Failed check, Expected: 7</sch:assert>
</sch:rule>

<sch:rule context="/report/jobs/job/validationReport/details/rule">
<sch:assert test="(@clause = '7.21.4.1' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '8') or
(@clause = '1.4.3' and @testNumber = '1' and @failedChecks = '8') or
(@clause = '7.1' and @testNumber = '9' and @failedChecks = '1') or
(@clause = '7.5' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '1.4.10' and @testNumber = '1' and @failedChecks = '2') or
(@clause = '1.4.10' and @testNumber = '1' and @failedChecks = '2') or
(@clause = '7.3' and @testNumber = '1' and @failedChecks = '2') or
(@clause = '5' and @testNumber = '1' and @failedChecks = '1')">Failed rules, Expected:
7.21.4.1-1, 1 check, or
1.3.1-4, 8 checks, or
1.4.3-1, 8 checks, or
7.1-9, 1 check, or
7.5-1, 1 check, or
1.4.10-1, 2 checks, or
1.4.10-1, 2 checks, or
7.3-1, 2 checks, or
5-1, 1 check</sch:assert>
</sch:rule>
Expand Down
4 changes: 1 addition & 3 deletions WCAG-21/wcag-algs-issues/test-document-8.sch
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

<sch:pattern name = "Checking the validationReport: rules">
<sch:rule context="/report/jobs/job/validationReport/details">
<sch:assert test="(@failedRules = '20')">Failed check, Expected: 20</sch:assert>
<sch:assert test="(@failedRules = '19')">Failed check, Expected: 19</sch:assert>
</sch:rule>

<sch:rule context="/report/jobs/job/validationReport/details/rule">
<sch:assert test="(@clause = '4.1.2' and @testNumber = '21' and @failedChecks = '15') or
(@clause = '4.1.2' and @testNumber = '10' and @failedChecks = '9') or
(@clause = '7.21.4.2' and @testNumber = '1' and @failedChecks = '22') or
(@clause = '4.1.1' and @testNumber = '2' and @failedChecks = '2') or
(@clause = '7.5' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '1.3.1' and @testNumber = '3' and @failedChecks = '4') or
(@clause = '1.4.10' and @testNumber = '1' and @failedChecks = '11') or
(@clause = '7.9' and @testNumber = '1' and @failedChecks = '7') or
Expand All @@ -44,7 +43,6 @@
4.1.2-10, 9 checks, or
7.21.4.2-1, 22 checks, or
4.1.1-2, 2 checks, or
7.5-1, 1 check, or
1.3.1-3, 4 checks, or
1.4.10-1, 11 checks, or
7.9-1, 7 checks, or
Expand Down
6 changes: 2 additions & 4 deletions WCAG-21/wcag-algs-issues/test-document.sch
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<sch:pattern name = "Checking the validationReport: rules">
<sch:rule context="/report/jobs/job/validationReport/details">
<sch:assert test="(@failedRules = '8')">Failed check, Expected: 8</sch:assert>
<sch:assert test="(@failedRules = '7')">Failed check, Expected: 7</sch:assert>
</sch:rule>

<sch:rule context="/report/jobs/job/validationReport/details/rule">
Expand All @@ -28,15 +28,13 @@
(@clause = '4.1.2' and @testNumber = '20' and @failedChecks = '1') or
(@clause = '1.4.10' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '7.21.4.1' and @testNumber = '1' and @failedChecks = '3') or
(@clause = '7.5' and @testNumber = '1' and @failedChecks = '1') or
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '11')">Failed rules, Expected:
(@clause = '1.3.1' and @testNumber = '4' and @failedChecks = '11')">Failed rules, Expected:
1.3.1-2, 9 checks, or
5-1, 1 check, or
4.1.2-9, 4 checks, or
4.1.2-20, 1 check, or
1.4.10-1, 1 check, or
7.21.4.1-1, 3 checks, or
7.5-1, 1 check, or
1.3.1-4, 11 checks</sch:assert>
</sch:rule>

Expand Down

0 comments on commit 23607de

Please sign in to comment.