fasdfsa's picture
init
fab29d7
[
{
"Name": "EPUB 3 book with remote content files - without options",
"Options": null,
"ContentFiles": [
{
"$id": 1,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/chapter.html",
"FilePath": "Content/chapter.html",
"Key": "chapter.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 2,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/toc.html",
"FilePath": "Content/toc.html",
"Key": "toc.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 3,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/styles.css",
"FilePath": "Content/styles.css",
"Key": "styles.css",
"ContentType": "CSS",
"ContentMimeType": "text/css"
},
{
"$id": 4,
"$type": "EpubLocalByteContentFile",
"$content": "epub://Content/cover.jpg",
"FilePath": "Content/cover.jpg",
"Key": "cover.jpg",
"ContentType": "IMAGE_JPEG",
"ContentMimeType": "image/jpeg"
},
{
"$id": 5,
"$type": "EpubLocalByteContentFile",
"$content": "epub://Content/font.ttf",
"FilePath": "Content/font.ttf",
"Key": "font.ttf",
"ContentType": "FONT_TRUETYPE",
"ContentMimeType": "application/x-font-truetype"
},
{
"$id": 6,
"$type": "EpubRemoteTextContentFile",
"$content": null,
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/toc.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 7,
"$type": "EpubRemoteTextContentFile",
"$content": null,
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/styles.css",
"ContentType": "CSS",
"ContentMimeType": "text/css"
},
{
"$id": 8,
"$type": "EpubRemoteByteContentFile",
"$content": null,
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/image.jpg",
"ContentType": "IMAGE_JPEG",
"ContentMimeType": "image/jpeg"
},
{
"$id": 9,
"$type": "EpubRemoteByteContentFile",
"$content": null,
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/font.ttf",
"ContentType": "FONT_TRUETYPE",
"ContentMimeType": "application/x-font-truetype"
}
],
"ExpectedResult": {
"$file": "test.epub",
"Title": "Test title",
"Author": "John Doe",
"AuthorList": [
"John Doe"
],
"$cover": "epub://Content/cover.jpg",
"Navigation": [
{
"Type": "HEADER",
"Title": "Table of Contents",
"NestedItems": [
{
"Type": "HEADER",
"Title": "Test header"
}
]
}
],
"Schema": {
"Package": {
"EpubVersion": "EPUB_3",
"Metadata": {
"Titles": [
{
"Title": "Test title"
}
],
"Creators": [
{
"Creator": "John Doe"
}
]
},
"Manifest": {
"Items": [
{
"Id": "html-local",
"Href": "chapter.html",
"MediaType": "application/xhtml+xml"
},
{
"Id": "css-local",
"Href": "styles.css",
"MediaType": "text/css"
},
{
"Id": "image-local",
"Href": "cover.jpg",
"MediaType": "image/jpeg",
"Properties": [
"COVER_IMAGE"
]
},
{
"Id": "font-local",
"Href": "font.ttf",
"MediaType": "application/x-font-truetype"
},
{
"Id": "html-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/toc.html",
"MediaType": "application/xhtml+xml"
},
{
"Id": "css-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/styles.css",
"MediaType": "text/css"
},
{
"Id": "image-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/image.jpg",
"MediaType": "image/jpeg"
},
{
"Id": "font-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/font.ttf",
"MediaType": "application/x-font-truetype"
},
{
"Id": "item-toc",
"Href": "toc.html",
"MediaType": "application/xhtml+xml",
"Properties": [
"NAV"
]
}
]
},
"Spine": {}
},
"Epub3NavDocument": {
"FilePath": "Content/toc.html",
"Navs": [
{
"Type": "TOC",
"Head": "Table of Contents",
"Ol": {
"Lis": [
{
"Span": {
"Text": "Test header"
}
}
]
}
}
]
},
"ContentDirectoryPath": "Content"
},
"Content": {
"Cover": {
"$ref": 4
},
"NavigationHtmlFile": {
"$ref": 2
},
"Html": {
"Local": [
{
"$ref": 1
},
{
"$ref": 2
}
],
"Remote": [
{
"$ref": 6
}
]
},
"Css": {
"Local": [
{
"$ref": 3
}
],
"Remote": [
{
"$ref": 7
}
]
},
"Images": {
"Local": [
{
"$ref": 4
}
],
"Remote": [
{
"$ref": 8
}
]
},
"Fonts": {
"Local": [
{
"$ref": 5
}
],
"Remote": [
{
"$ref": 9
}
]
},
"AllFiles": {
"Local": [
{
"$ref": 1
},
{
"$ref": 2
},
{
"$ref": 3
},
{
"$ref": 4
},
{
"$ref": 5
}
],
"Remote": [
{
"$ref": 6
},
{
"$ref": 7
},
{
"$ref": 8
},
{
"$ref": 9
}
]
}
}
}
},
{
"Name": "EPUB 3 book with remote content files - with options",
"Options": {
"ContentDownloaderOptions": {
"DownloadContent": true,
"DownloaderUserAgent": "EpubReader Integration Test Runner (https://github.com/vers-one/EpubReader)"
}
},
"ContentFiles": [
{
"$id": 10,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/chapter.html",
"FilePath": "Content/chapter.html",
"Key": "chapter.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 11,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/toc.html",
"FilePath": "Content/toc.html",
"Key": "toc.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 12,
"$type": "EpubLocalTextContentFile",
"$content": "epub://Content/styles.css",
"FilePath": "Content/styles.css",
"Key": "styles.css",
"ContentType": "CSS",
"ContentMimeType": "text/css"
},
{
"$id": 13,
"$type": "EpubLocalByteContentFile",
"$content": "epub://Content/cover.jpg",
"FilePath": "Content/cover.jpg",
"Key": "cover.jpg",
"ContentType": "IMAGE_JPEG",
"ContentMimeType": "image/jpeg"
},
{
"$id": 14,
"$type": "EpubLocalByteContentFile",
"$content": "epub://Content/font.ttf",
"FilePath": "Content/font.ttf",
"Key": "font.ttf",
"ContentType": "FONT_TRUETYPE",
"ContentMimeType": "application/x-font-truetype"
},
{
"$id": 15,
"$type": "EpubRemoteTextContentFile",
"$content": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/toc.html",
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/toc.html",
"ContentType": "XHTML_1_1",
"ContentMimeType": "application/xhtml+xml"
},
{
"$id": 16,
"$type": "EpubRemoteTextContentFile",
"$content": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/styles.css",
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/styles.css",
"ContentType": "CSS",
"ContentMimeType": "text/css"
},
{
"$id": 17,
"$type": "EpubRemoteByteContentFile",
"$content": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/image.jpg",
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/image.jpg",
"ContentType": "IMAGE_JPEG",
"ContentMimeType": "image/jpeg"
},
{
"$id": 18,
"$type": "EpubRemoteByteContentFile",
"$content": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/font.ttf",
"Key": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/font.ttf",
"ContentType": "FONT_TRUETYPE",
"ContentMimeType": "application/x-font-truetype"
}
],
"ExpectedResult": {
"$file": "test.epub",
"Title": "Test title",
"Author": "John Doe",
"AuthorList": [
"John Doe"
],
"$cover": "epub://Content/cover.jpg",
"Navigation": [
{
"Type": "HEADER",
"Title": "Table of Contents",
"NestedItems": [
{
"Type": "HEADER",
"Title": "Test header"
}
]
}
],
"Schema": {
"Package": {
"EpubVersion": "EPUB_3",
"Metadata": {
"Titles": [
{
"Title": "Test title"
}
],
"Creators": [
{
"Creator": "John Doe"
}
]
},
"Manifest": {
"Items": [
{
"Id": "html-local",
"Href": "chapter.html",
"MediaType": "application/xhtml+xml"
},
{
"Id": "css-local",
"Href": "styles.css",
"MediaType": "text/css"
},
{
"Id": "image-local",
"Href": "cover.jpg",
"MediaType": "image/jpeg",
"Properties": [
"COVER_IMAGE"
]
},
{
"Id": "font-local",
"Href": "font.ttf",
"MediaType": "application/x-font-truetype"
},
{
"Id": "html-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/toc.html",
"MediaType": "application/xhtml+xml"
},
{
"Id": "css-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/styles.css",
"MediaType": "text/css"
},
{
"Id": "image-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/image.jpg",
"MediaType": "image/jpeg"
},
{
"Id": "font-remote",
"Href": "https://raw.githubusercontent.com/vers-one/EpubReader/refs/heads/master/Source/VersOne.Epub.Test/Integration/TestRemoteFiles/font.ttf",
"MediaType": "application/x-font-truetype"
},
{
"Id": "item-toc",
"Href": "toc.html",
"MediaType": "application/xhtml+xml",
"Properties": [
"NAV"
]
}
]
},
"Spine": {}
},
"Epub3NavDocument": {
"FilePath": "Content/toc.html",
"Navs": [
{
"Type": "TOC",
"Head": "Table of Contents",
"Ol": {
"Lis": [
{
"Span": {
"Text": "Test header"
}
}
]
}
}
]
},
"ContentDirectoryPath": "Content"
},
"Content": {
"Cover": {
"$ref": 13
},
"NavigationHtmlFile": {
"$ref": 11
},
"Html": {
"Local": [
{
"$ref": 10
},
{
"$ref": 11
}
],
"Remote": [
{
"$ref": 15
}
]
},
"Css": {
"Local": [
{
"$ref": 12
}
],
"Remote": [
{
"$ref": 16
}
]
},
"Images": {
"Local": [
{
"$ref": 13
}
],
"Remote": [
{
"$ref": 17
}
]
},
"Fonts": {
"Local": [
{
"$ref": 14
}
],
"Remote": [
{
"$ref": 18
}
]
},
"AllFiles": {
"Local": [
{
"$ref": 10
},
{
"$ref": 11
},
{
"$ref": 12
},
{
"$ref": 13
},
{
"$ref": 14
}
],
"Remote": [
{
"$ref": 15
},
{
"$ref": 16
},
{
"$ref": 17
},
{
"$ref": 18
}
]
}
}
}
}
]