mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
tests: cleanup filemanager tests
Fix error trace: "FileManager instance mismatch".
This commit is contained in:
committed by
Frans de Jonge
parent
6956b6c560
commit
cee0fef497
@@ -14,14 +14,14 @@ describe("FileManager module", function()
|
||||
util = require("ffi/util")
|
||||
end)
|
||||
it("should show file manager", function()
|
||||
UIManager:quit()
|
||||
local filemanager = FileManager:new{
|
||||
dimen = Screen:getSize(),
|
||||
root_path = "spec/front/unit/data",
|
||||
}
|
||||
UIManager:show(filemanager)
|
||||
UIManager:scheduleIn(1, function() filemanager:onClose() end)
|
||||
UIManager:run()
|
||||
fastforward_ui_events()
|
||||
filemanager:onClose()
|
||||
UIManager:quit()
|
||||
end)
|
||||
it("should show error on non-existent file", function()
|
||||
local filemanager = FileManager:new{
|
||||
|
||||
Reference in New Issue
Block a user