Skip to content

Commit

Permalink
fix: revert the deprecation of 'display-seq'
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Mar 10, 2019
1 parent 0d9462f commit f81d8b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,4 @@
</rule>
</pattern>

<pattern id="opf.meta.display-seq.deprecated">
<rule context="opf:metadata/opf:meta[normalize-space(@property)='display-seq']">
<report test=".">WARNING: Use of the display-seq property is deprecated</report>
</rule>
</pattern>
</schema>
7 changes: 3 additions & 4 deletions src/test/java/com/adobe/epubcheck/opf/OPFCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,10 @@ public void testMetaMetaAuthIsDeprecated()
}

@Test
public void testMetaDisplaySeqIsDeprecated()
public void testMetaDisplaySeq()
{
// tests that the 'display-seq' property is reported as deprecated
Collections.addAll(expectedWarnings, MessageId.RSC_017);
testValidateDocument("invalid/meta-displayseq-deprecated.opf", EPUBVersion.VERSION_3);
// tests that the 'display-seq' property is allowed
testValidateDocument("valid/meta-displayseq.opf", EPUBVersion.VERSION_3);
}

@Test
Expand Down

0 comments on commit f81d8b8

Please sign in to comment.