mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
524 B
Lua
19 lines
524 B
Lua
8 years ago
|
describe("ProgressWidget widget", function()
|
||
|
local ProgressWidget, Screen
|
||
|
setup(function()
|
||
|
require("commonrequire")
|
||
|
ProgressWidget = require("ui/widget/progresswidget")
|
||
|
Screen = require("device").screen
|
||
|
end)
|
||
|
|
||
|
it("should not crash with nil self.last #ok", function()
|
||
|
local progress = ProgressWidget:new{
|
||
|
width = 100,
|
||
|
height = 50,
|
||
|
percentage = 5/100,
|
||
|
ticks = {1},
|
||
|
}
|
||
|
progress:paintTo(Screen.bb, 0, 0)
|
||
|
end)
|
||
|
end)
|