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()
|
2014-11-05 10:06:05 +00:00
|
|
|
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)
|