|
|
@ -577,7 +577,7 @@ describe("Readerfooter module", function()
|
|
|
|
|
|
|
|
|
|
|
|
assert.falsy(footer.has_no_mode)
|
|
|
|
assert.falsy(footer.has_no_mode)
|
|
|
|
assert.truthy(readerui.view.footer_visible)
|
|
|
|
assert.truthy(readerui.view.footer_visible)
|
|
|
|
assert.is.same(21, footer:getHeight())
|
|
|
|
assert.is.same(24, footer:getHeight())
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
it("should return correct footer height when all modes are disabled", function()
|
|
|
|
it("should return correct footer height when all modes are disabled", function()
|
|
|
@ -595,7 +595,7 @@ describe("Readerfooter module", function()
|
|
|
|
|
|
|
|
|
|
|
|
assert.truthy(footer.has_no_mode)
|
|
|
|
assert.truthy(footer.has_no_mode)
|
|
|
|
assert.falsy(readerui.view.footer_visible)
|
|
|
|
assert.falsy(readerui.view.footer_visible)
|
|
|
|
assert.is.same(21, footer:getHeight())
|
|
|
|
assert.is.same(24, footer:getHeight())
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
it("should disable footer if settings.disabled is true", function()
|
|
|
|
it("should disable footer if settings.disabled is true", function()
|
|
|
|