diff --git a/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/content_001.xhtml b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/content_001.xhtml new file mode 100644 index 000000000..ea29a1610 --- /dev/null +++ b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/content_001.xhtml @@ -0,0 +1,11 @@ + + + + + Minimal EPUB + + +

Loomings

+

Call me Ishmael.

+ + diff --git a/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/nav.xhtml b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/nav.xhtml new file mode 100644 index 000000000..240745e63 --- /dev/null +++ b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/nav.xhtml @@ -0,0 +1,14 @@ + + + + + Minimal Nav + + + + + diff --git a/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/package.opf b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/package.opf new file mode 100644 index 000000000..50ae7853c --- /dev/null +++ b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/EPUB/package.opf @@ -0,0 +1,16 @@ + + + + Minimal EPUB 3.0 + en + NOID + 2017-06-14T00:00:01Z + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/META-INF/container.xml b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/META-INF/container.xml new file mode 100644 index 000000000..318782179 --- /dev/null +++ b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/META-INF/container.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/mimetype b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/mimetype new file mode 100644 index 000000000..57ef03f24 --- /dev/null +++ b/src/test/resources/epub3/04-ocf/files/ocf-url-path-absolute-error/mimetype @@ -0,0 +1 @@ +application/epub+zip \ No newline at end of file diff --git a/src/test/resources/epub3/04-ocf/ocf.feature b/src/test/resources/epub3/04-ocf/ocf.feature index 332dcde9f..9fab7c085 100644 --- a/src/test/resources/epub3/04-ocf/ocf.feature +++ b/src/test/resources/epub3/04-ocf/ocf.feature @@ -108,7 +108,13 @@ Feature: EPUB 3 — Open Container Format @spec @xref:sec-container-iri Scenario: Report leaking URLs in the package document When checking EPUB 'ocf-url-leaking-in-opf-error' - And error RSC-026 is reported 2 times + Then error RSC-026 is reported 2 times + And no other errors or warnings are reported + + @spec @xref:sec-container-iri + Scenario: Report path-absolute URLs in the package document + When checking EPUB 'ocf-url-path-absolute-error' + Then error RSC-026 is reported And no other errors or warnings are reported