Skip to content

Commit

Permalink
feat: page-list nav does not have to match reading order
Browse files Browse the repository at this point in the history
This commit:
- removes the call to check the page list reading order
- keeps the checking code, as well as NAV-011
- update tests

Fix #1237
  • Loading branch information
rdeltour committed Jan 24, 2022
1 parent 61dbf53 commit d0f12a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/adobe/epubcheck/opf/XRefChecker.java
Expand Up @@ -310,7 +310,6 @@ public void checkReferences()
}
}
checkReadingOrder(tocLinks, -1, -1);
checkReadingOrder(pageListLinks, -1, -1);
checkReadingOrder(overlayLinks, -1, -1);
}

Expand Down
6 changes: 2 additions & 4 deletions src/test/resources/epub3/navigation-publication.feature
Expand Up @@ -71,14 +71,12 @@ Feature: EPUB 3 ▸ Navigation Document ▸ Full Publication Checks
When checking EPUB 'nav-page-list-reading-order-valid'
Then no errors or warnings are reported

Scenario: Report a `page-list nav` whose links do not match the spine order
Scenario: Verify a `page-list nav` whose links do not match the spine order
When checking EPUB 'nav-page-list-unordered-spine-warning'
Then warning NAV-011 is reported
And no other errors or warnings are reported

Scenario: Report a `page-list nav` whose links do match the document order
Scenario: Verify a `page-list nav` whose links do match the document order
When checking EPUB 'nav-page-list-unordered-fragments-warning'
Then warning NAV-011 is reported
And no other errors or warnings are reported


Expand Down

0 comments on commit d0f12a9

Please sign in to comment.