comparison src/testdir/test_sound.vim @ 24842:237dace53473 v8.2.2959

patch 8.2.2959: sound_playfile() is not tested on MS-Windows Commit: https://github.com/vim/vim/commit/2f9c209ba089d81fd727122bbe0ae1da00585d80 Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Mon Jun 7 20:28:45 2021 +0200 patch 8.2.2959: sound_playfile() is not tested on MS-Windows Problem: sound_playfile() is not tested on MS-Windows. Solution: Make it work and enable the test. (Dominique Pell?, closes https://github.com/vim/vim/issues/8338)
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Jun 2021 20:30:03 +0200
parents a9ffc9154b32
children 71137f73c94d
comparison
equal deleted inserted replaced
24841:2393bed3aefb 24842:237dace53473
73 call sound_clear() 73 call sound_clear()
74 call WaitForAssert({-> assert_true(g:id > 0)}) 74 call WaitForAssert({-> assert_true(g:id > 0)})
75 endfunc 75 endfunc
76 76
77 func Test_play_event_error() 77 func Test_play_event_error()
78 " Do not run test on Windows as: 78 " FIXME: sound_playevent() doesn't return 0 in case of error on Windows.
79 " - playing event with callback is not supported on Windows. 79 if !has('win32')
80 " - FIXME: even without callback, sound_playevent('') does not return 0 on Windows. Bug? 80 call assert_equal(0, sound_playevent(''))
81 CheckNotMSWindows 81 call assert_equal(0, sound_playevent(test_null_string()))
82 82 call assert_equal(0, sound_playevent('doesnotexist'))
83 call assert_equal(0, sound_playevent('')) 83 call assert_equal(0, sound_playevent('doesnotexist', 'doesnotexist'))
84 call assert_equal(0, sound_playevent(test_null_string())) 84 call assert_equal(0, sound_playevent(test_null_string(), test_null_string()))
85 call assert_equal(0, sound_playevent('doesnotexist')) 85 call assert_equal(0, sound_playevent(test_null_string(), test_null_function()))
86 call assert_equal(0, sound_playevent('doesnotexist', 'doesnotexist')) 86 endif
87 call assert_equal(0, sound_playevent(test_null_string(), test_null_string()))
88 call assert_equal(0, sound_playevent(test_null_string(), test_null_function()))
89 87
90 call assert_equal(0, sound_playfile('')) 88 call assert_equal(0, sound_playfile(''))
91 call assert_equal(0, sound_playfile(test_null_string())) 89 call assert_equal(0, sound_playfile(test_null_string()))
92 call assert_equal(0, sound_playfile('doesnotexist')) 90 call assert_equal(0, sound_playfile('doesnotexist'))
93 call assert_equal(0, sound_playfile('doesnotexist', 'doesnotexist')) 91 call assert_equal(0, sound_playfile('doesnotexist', 'doesnotexist'))