Add eink_optimization_spec
This commit is contained in:
1 parent
f0c675d722
commit
61ec784f91
2 files changed
+9
-1
No files matched your search
@@ -53,7 +53,7 @@ function Device:init()
|
||||
end
|
||||
|
||||
local is_eink = G_reader_settings:readSetting("eink")
|
||||
self.screen.eink = (is_eink == nill) or is_eink
|
||||
self.screen.eink = (is_eink == nil) or is_eink
|
||||
|
||||
DEBUG("initializing for device", self.model)
|
||||
DEBUG("framebuffer resolution:", self.screen:getSize())
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
require("commonrequire")
|
||||
|
||||
describe("eink optimization setting", function()
|
||||
it("should be correctly loaded", function()
|
||||
G_reader_settings:saveSetting("eink", true)
|
||||
assert.Equals(require("device").screen.eink, true)
|
||||
end)
|
||||
end)
|
||||
Reference in new issue
Block a user