mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
test: fix readerbookmark unit test
This commit is contained in:
@@ -38,14 +38,14 @@ function ReaderStatus:addToMainMenu(tab_item_table)
|
||||
end
|
||||
|
||||
function ReaderStatus:showStatus()
|
||||
local statusWidget = StatusWidget:new {
|
||||
local status_page = status_page:new {
|
||||
thumbnail = self.document:getCoverPageImage(),
|
||||
props = self.document:getProps(),
|
||||
document = self.document,
|
||||
settings = self.settings,
|
||||
view = self.view,
|
||||
}
|
||||
UIManager:show(statusWidget)
|
||||
UIManager:show(status_page)
|
||||
end
|
||||
|
||||
function ReaderStatus:onPageUpdate(pageno)
|
||||
@@ -66,4 +66,3 @@ function ReaderStatus:onReadSettings(config)
|
||||
end
|
||||
|
||||
return ReaderStatus
|
||||
|
||||
|
||||
2
kodev
2
kodev
@@ -265,7 +265,7 @@ usage: test [front|base] <TEST_NAME>
|
||||
if [ ! -z $2 ]; then
|
||||
test_path="${test_path}/$2"
|
||||
fi
|
||||
busted --exclude-tags=notest ${test_path}
|
||||
busted -o verbose_print --exclude-tags=notest ${test_path}
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ describe("ReaderBookmark module", function()
|
||||
readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
readerui.status.enabled = false
|
||||
end)
|
||||
before_each(function()
|
||||
UIManager:quit()
|
||||
@@ -117,6 +118,7 @@ describe("ReaderBookmark module", function()
|
||||
readerui = ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_pdf),
|
||||
}
|
||||
readerui.status.enabled = false
|
||||
end)
|
||||
before_each(function()
|
||||
UIManager:quit()
|
||||
|
||||
Reference in New Issue
Block a user