diff --git a/tests/__tests__/regression.test.js b/tests/__tests__/regression.test.js index 5dc18ce3..a8db0642 100644 --- a/tests/__tests__/regression.test.js +++ b/tests/__tests__/regression.test.js @@ -106,3 +106,13 @@ test('issue #239: `listitem` is not reported when roles inherit from list roles' const report = await ace('../data/issue-239'); expect(report['earl:result']['earl:outcome']).toEqual('pass'); }); + +test('issue #290 (unzipped): URL percent encoding', async () => { + const report = await ace('../data/issue-290'); + expect(report['earl:result']['earl:outcome']).toEqual('pass'); +}); + +test('issue #290 (zipped): URL percent encoding', async () => { + const report = await ace('../data/issue-290.epub'); + expect(report['earl:result']['earl:outcome']).toEqual('pass'); +}); diff --git a/tests/data/issue-290.epub b/tests/data/issue-290.epub new file mode 100644 index 00000000..d81b2981 Binary files /dev/null and b/tests/data/issue-290.epub differ diff --git "a/tests/data/issue-290/E%PU B/c%on t&e%26n%2Ft_\303\250001.xhtml" "b/tests/data/issue-290/E%PU B/c%on t&e%26n%2Ft_\303\250001.xhtml" new file mode 100644 index 00000000..907b1466 --- /dev/null +++ "b/tests/data/issue-290/E%PU B/c%on t&e%26n%2Ft_\303\250001.xhtml" @@ -0,0 +1,11 @@ + + +Minimal EPUB + + +

Loomings

+dummy +

Call me Ishmael.

+ + + diff --git "a/tests/data/issue-290/E%PU B/i%ma g&e%26_%2F00\303\2501.jpg" "b/tests/data/issue-290/E%PU B/i%ma g&e%26_%2F00\303\2501.jpg" new file mode 100644 index 00000000..6b7c589d Binary files /dev/null and "b/tests/data/issue-290/E%PU B/i%ma g&e%26_%2F00\303\2501.jpg" differ diff --git "a/tests/data/issue-290/E%PU B/n%av i&g%26a%2Ftio\303\250n.xhtml" "b/tests/data/issue-290/E%PU B/n%av i&g%26a%2Ftio\303\250n.xhtml" new file mode 100644 index 00000000..cf8bf9c8 --- /dev/null +++ "b/tests/data/issue-290/E%PU B/n%av i&g%26a%2Ftio\303\250n.xhtml" @@ -0,0 +1,17 @@ + + +Minimal Nav + + + + + + diff --git "a/tests/data/issue-290/E%PU B/pa&c%26kag%2Fe\303\250.opf" "b/tests/data/issue-290/E%PU B/pa&c%26kag%2Fe\303\250.opf" new file mode 100644 index 00000000..853eddc3 --- /dev/null +++ "b/tests/data/issue-290/E%PU B/pa&c%26kag%2Fe\303\250.opf" @@ -0,0 +1,33 @@ + + + + Minimal EPUB 3.0 + en + NOID + https://example.com + 2017-01-01T00:00:01Z + structuralNavigation + everything OK! + noFlashingHazard + noSoundHazard + noMotionSimulationHazard + textual + textual + + + + + + + + + + + + + + + + + + diff --git a/tests/data/issue-290/META-INF/container.xml b/tests/data/issue-290/META-INF/container.xml new file mode 100644 index 00000000..c8514211 --- /dev/null +++ b/tests/data/issue-290/META-INF/container.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/data/issue-290/mimetype b/tests/data/issue-290/mimetype new file mode 100644 index 00000000..57ef03f2 --- /dev/null +++ b/tests/data/issue-290/mimetype @@ -0,0 +1 @@ +application/epub+zip \ No newline at end of file