Skip to content

Commit

Permalink
Add new test #1397
Browse files Browse the repository at this point in the history
  • Loading branch information
georgetarazevich committed Jan 23, 2024
1 parent cf23129 commit 9c868ce
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
Binary file added PDF_A-2b/1397/271.essai-a.pdf
Binary file not shown.
44 changes: 44 additions & 0 deletions PDF_A-2b/1397/271.essai-a.sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://purl.oclc.org/dsdl/schematron ">

<!-- Issue# 1397 -->
<!-- https://github.com/veraPDF/veraPDF-library/issues/1397 -->
<!-- File: 271.essai-a.pdf -->


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

<sch:rule context="/report/jobs/job/logs">
<sch:assert test="@logsCount = '1'">Failed check, Expected: 1</sch:assert>
</sch:rule>

<sch:rule context="/report/jobs/job/logs/logMessage">
<sch:assert test='(contains(., "CFF Type1 FontProgram contains duplicated glyph name space") and @occurrences = "1" and @level = "WARNING")'>Invalid logs, Expected:
'WARNING: CFF Type1 FontProgram contains duplicated glyph name space' with 1 occurrences</sch:assert>
</sch:rule>
</sch:pattern>

</sch:schema>

0 comments on commit 9c868ce

Please sign in to comment.