2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
koreader/spec/unit/filemanager_spec.lua

19 lines
592 B
Lua
Raw Normal View History

2014-11-05 08:58:09 +00:00
require("commonrequire")
local FileManager = require("apps/filemanager/filemanager")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local DEBUG = require("dbg")
describe("FileManager module", function()
it("should show file manager", function()
UIManager:quit()
local filemanager = FileManager:new{
dimen = Screen:getSize(),
root_path = "../../test",
}
UIManager:show(filemanager)
UIManager:scheduleIn(1, function() UIManager:close(filemanager) end)
2014-11-05 08:58:09 +00:00
UIManager:run()
end)
end)