mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
test: kill in fly hinting event
This commit is contained in:
@@ -34,4 +34,11 @@ describe("Readerui module", function()
|
||||
readerui:closeDocument()
|
||||
assert(readerui.document == nil)
|
||||
end)
|
||||
it("should not reset running_instance by mistake", function()
|
||||
assert.is.truthy(readerui.document)
|
||||
ReaderUI:new{
|
||||
document = DocumentRegistry:openDocument(sample_epub)
|
||||
}:onClose()
|
||||
assert.is.truthy(readerui.document)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user