mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Prevent Busted from blowing up on cdata finalizers by properly closing
opened documents...
This commit is contained in:
@@ -74,6 +74,10 @@ describe("Readerhighlight module", function()
|
||||
document = DocumentRegistry:openDocument(sample_epub),
|
||||
}
|
||||
end)
|
||||
teardown(function()
|
||||
readerui:closeDocument()
|
||||
readerui:onClose()
|
||||
end)
|
||||
before_each(function()
|
||||
UIManager:quit()
|
||||
readerui.rolling:onGotoPage(page)
|
||||
@@ -117,6 +121,10 @@ describe("Readerhighlight module", function()
|
||||
}
|
||||
readerui:handleEvent(Event:new("SetScrollMode", false))
|
||||
end)
|
||||
teardown(function()
|
||||
readerui:closeDocument()
|
||||
readerui:onClose()
|
||||
end)
|
||||
describe("for scanned page with text layer", function()
|
||||
before_each(function()
|
||||
UIManager:quit()
|
||||
@@ -201,6 +209,10 @@ describe("Readerhighlight module", function()
|
||||
}
|
||||
readerui:handleEvent(Event:new("SetScrollMode", true))
|
||||
end)
|
||||
teardown(function()
|
||||
readerui:closeDocument()
|
||||
readerui:onClose()
|
||||
end)
|
||||
describe("for scanned page with text layer", function()
|
||||
before_each(function()
|
||||
UIManager:quit()
|
||||
|
||||
Reference in New Issue
Block a user