2015-09-09 03:10:17 +00:00
|
|
|
describe("Font module", function()
|
2016-03-29 06:37:15 +00:00
|
|
|
local Font
|
|
|
|
setup(function()
|
|
|
|
require("commonrequire")
|
|
|
|
Font = require("ui/font")
|
|
|
|
end)
|
2015-09-09 03:10:17 +00:00
|
|
|
it("should get face", function()
|
2016-03-29 06:37:15 +00:00
|
|
|
local f
|
2015-09-09 03:10:17 +00:00
|
|
|
f = Font:getFace('cfont', 18)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-09 03:10:17 +00:00
|
|
|
f = Font:getFace('tfont', 16)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-09 03:10:17 +00:00
|
|
|
f = Font:getFace('hfont', 12)
|
2023-07-04 07:13:16 +00:00
|
|
|
assert.are_not.equals(f.ftsize, nil)
|
2015-09-09 03:10:17 +00:00
|
|
|
end)
|
|
|
|
end)
|