From cb0eee180f8e66d583a0bf64f7fd09aff55a6e6e Mon Sep 17 00:00:00 2001 From: raochsinai Date: Sat, 25 Jul 2020 17:03:04 +0800 Subject: [PATCH] Correct test function for CustomWinBar in ui.test.vim. --- tests/ui.test.vim | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/tests/ui.test.vim b/tests/ui.test.vim index 99bf90a..b6c8feb 100644 --- a/tests/ui.test.vim +++ b/tests/ui.test.vim @@ -397,31 +397,13 @@ endfunction function! Test_CustomWinBar() augroup TestCustomWinBar au! - au User VimspectorUICreated - \ call win_execute( g:vimspector_session_windows.watches, 'q' ) au User VimspectorUICreated call s:CustomWinBar() augroup END call s:StartDebugging() - - call vimspector#StepOver() - call vimspector#test#signs#AssertCursorIsAtLineInBuffer( s:fn, 25, 1 ) - call assert_equal( - \ [ 'row', [ - \ [ 'col', [ - \ [ 'leaf', g:vimspector_session_windows.variables ], - \ [ 'leaf', g:vimspector_session_windows.stack_trace ], - \ ] ], - \ [ 'col', [ - \ [ 'row', [ - \ [ 'leaf', g:vimspector_session_windows.code ], - \ [ 'leaf', g:vimspector_session_windows.terminal ], - \ ] ], - \ [ 'leaf', g:vimspector_session_windows.output ], - \ ] ] - \ ] ], - \ winlayout( g:vimspector_session_windows.tabpage ) ) + \ ['▷ ᶠ⁵', '↷ ᶠ¹⁰', '↓ ᶠ¹¹', '↑ ˢᶠ¹¹', '❘❘ ᶠ⁶', '□ ˢᶠ⁵', '⟲ ᶜˢᶠ⁵', '✕ ᶠ⁸'], + \ menu_info( 'WinBar' ).submenus ) au! TestCustomWinBar call vimspector#test#setup#Reset()