From 6a775651c5aadb93c0d44c7568c43f49e63585ab Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 19 Oct 2010 00:58:11 -0700 Subject: [PATCH] Fixed .active_window test --- moo/medit-app/data/testmedit.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/moo/medit-app/data/testmedit.lua b/moo/medit-app/data/testmedit.lua index 43e2d274..9c50bba2 100644 --- a/moo/medit-app/data/testmedit.lua +++ b/moo/medit-app/data/testmedit.lua @@ -11,19 +11,19 @@ local function test_active_window() w1 = editor.active_window() tassert(w1 ~= nil, 'editor.active_window() ~= nil') tassert(w1 == w1, 'w1 == w1') - tassert(#app.windows() == 1, 'one window') + tassert(#editor.windows() == 1, 'one window') w2 = editor.new_window() tassert(w2 ~= nil, 'editor.new_window() ~= nil') tassert(w1 ~= w2, 'old window != new window') - tassert(#app.windows() == 2, 'two window') - app.set_active_window(w2) + tassert(#editor.windows() == 2, 'two window') + editor.set_active_window(w2) _moo_utils.spin_main_loop(0.1) tassert(w2 == editor.active_window(), 'w2 == editor.active_window()') - app.set_active_window(w1) + editor.set_active_window(w1) _moo_utils.spin_main_loop(0.1) tassert(w1 == editor.active_window(), 'w1 == editor.active_window()') editor.close_window(w1) - tassert(#app.windows() == 1, 'two window') + tassert(#editor.windows() == 1, 'two window') tassert(w2 == editor.active_window(), 'w2 == editor.active_window()') end