window.close_all() may close the window now, don't do it with a new window
This commit is contained in:
parent
2d441aa860
commit
3a8e52381c
@ -1,6 +1,8 @@
|
||||
require("munit")
|
||||
|
||||
window = editor.new_window()
|
||||
editor.close_docs(editor.get_docs())
|
||||
tassert(#editor.get_docs() == 1)
|
||||
window = editor.get_active_window()
|
||||
tassert(#window.get_docs() == 1)
|
||||
tassert(window.get_docs()[1] == window.get_active_doc())
|
||||
editor.new_doc(window)
|
||||
|
Loading…
x
Reference in New Issue
Block a user