diff --git a/moo/medit-app/data/test-lua/testwindow.lua b/moo/medit-app/data/test-lua/testwindow.lua index aa157c85..547956b5 100644 --- a/moo/medit-app/data/test-lua/testwindow.lua +++ b/moo/medit-app/data/test-lua/testwindow.lua @@ -1,6 +1,7 @@ require("munit") -window = editor.new_window() +editor.close_docs(editor.get_docs()) +window = editor.get_active_window() tassert(#window.get_docs() == 1) tassert(window.get_docs()[1] == window.get_active_doc()) editor.new_doc(window) @@ -85,5 +86,3 @@ tassert_eq(doc1.get_n_views(), 1) tassert(editor.close_docs({doc1, doc2, doc3})) tassert_eq(window.get_docs(), {doc4}) tassert_eq(editor.get_active_doc(), doc4) - -window.close()