2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/spec/unit/font_spec.lua

17 lines
463 B
Lua
Raw Normal View History

2015-09-09 03:10:17 +00:00
describe("Font module", function()
local Font
setup(function()
require("commonrequire")
Font = require("ui/font")
end)
2015-09-09 03:10:17 +00:00
it("should get face", function()
local f
2015-09-09 03:10:17 +00:00
f = Font:getFace('cfont', 18)
assert.are_not.equals(f.ftface, nil)
f = Font:getFace('tfont', 16)
assert.are_not.equals(f.ftface, nil)
f = Font:getFace('hfont', 12)
assert.are_not.equals(f.ftface, nil)
end)
end)