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 @@ + +
+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 @@ + + +