Skip to content

Commit

Permalink
Update regression test for issue 1397
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 8, 2024
1 parent c40e541 commit 02ae9ed
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions PDF_A-2b/1397/271.essai-a.sch
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,12 @@
<!-- File: 271.essai-a.pdf -->


<sch:pattern name = "Checking the validationReport: document is not compliant">
<sch:pattern name = "Checking the validationReport: document is compliant">
<sch:rule context="/report/jobs/job/validationReport">
<sch:assert test="(@isCompliant = 'false')">Failed check, Expected: isCompliant=false</sch:assert>
<sch:assert test="(@isCompliant = 'true')">Failed check, Expected: isCompliant=true</sch:assert>
</sch:rule>
</sch:pattern>

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

<sch:rule context="/report/jobs/job/validationReport/details/rule">
<sch:assert test="(@clause = '6.2.11.5' and @testNumber = '1' and @failedChecks = '1')">Failed rules, Expected:
6.2.11.5-1, 1 check</sch:assert>
</sch:rule>

</sch:pattern>

<sch:pattern name = "Checking the logs">
<sch:rule context="/report/jobs/job">
<sch:assert test="count(logs) = 1">Failed check, Expected: contains logs</sch:assert>
Expand Down

0 comments on commit 02ae9ed

Please sign in to comment.