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

16 lines
440 B
Lua

require("commonrequire")
local DEBUG = require("dbg")
local Font = require("ui/font")
describe("Font module", function()
local f = nil
it("should get face", function()
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)