window.close_all() may close the window now, don't do it with a new window

This commit is contained in:
Yevgen Muntyan 2012-08-11 00:36:32 -07:00
parent 2d441aa860
commit 3a8e52381c

View File

@ -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)