add spec of document rendering benchmark

This commit is contained in:
chrox
2014-05-18 21:26:18 +08:00
parent e3518bf6a2
commit 5d77abd804
4 changed files with 47 additions and 3 deletions

View File

@@ -50,11 +50,10 @@ describe("PDF document module", function()
end)
describe("EPUB document module", function()
local sample_epub = "spec/front/unit/data/leaves_of_grass.epub"
local sample_epub = "spec/front/unit/data/leaves.epub"
it("should open document", function()
doc = DocumentRegistry:openDocument(sample_epub)
assert.truthy(doc)
doc:close()
end)
it("should close document", function()
doc:close()