tests: speedup document tests

This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-12-25 17:29:40 +01:00
1 parent 646ed9a07f
commit e0562f72e5
1 file changed
+3 -4
+3 -4
View File
@@ -55,15 +55,14 @@ describe("EPUB document module", function()
local doc
it("should open document", function()
local sample_epub = "spec/front/unit/data/leaves.epub"
doc = DocumentRegistry:openDocument(sample_epub)
doc = DocumentRegistry:openDocument("spec/front/unit/data/juliet.epub")
assert.truthy(doc)
end)
it("should get cover image", function()
local image = doc:getCoverPageImage()
assert.truthy(image)
assert.are.same(image:getWidth(), 442)
assert.are.same(image:getHeight(), 616)
assert.are.same(520, image:getWidth())
assert.are.same(800, image:getHeight())
end)
it("should register droid sans fallback", function()
local face_list = cre.getFontFaces()