mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-14 04:28:51 +02:00
test: add test with webp
This commit is contained in:
@@ -143,6 +143,18 @@ func TestConverter_ConvertChapter(t *testing.T) {
|
|||||||
expectSplit: false,
|
expectSplit: false,
|
||||||
numExpected: 3,
|
numExpected: 3,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Multiple normal images with webp",
|
||||||
|
pages: []*manga.Page{
|
||||||
|
createTestPage(t, 1, 800, 1200, "png"),
|
||||||
|
createTestPage(t, 2, 800, 1200, "jpeg"),
|
||||||
|
createTestPage(t, 3, 800, 1200, "gif"),
|
||||||
|
createTestPage(t, 4, 800, 1200, "webp"),
|
||||||
|
},
|
||||||
|
split: false,
|
||||||
|
expectSplit: false,
|
||||||
|
numExpected: 4,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "Tall image with split enabled",
|
name: "Tall image with split enabled",
|
||||||
pages: []*manga.Page{createTestPage(t, 1, 800, 5000, "jpeg")},
|
pages: []*manga.Page{createTestPage(t, 1, 800, 5000, "jpeg")},
|
||||||
|
Reference in New Issue
Block a user