head 1.5; access; symbols netbsd-10-2-RELEASE:1.5 netbsd-11-0-RELEASE:1.5 netbsd-11-0-RC7:1.5 netbsd-11-0-RC6:1.5 netbsd-11-0-RC5:1.5 netbsd-11-0-RC4:1.5 netbsd-11-0-RC3:1.5 netbsd-11-0-RC2:1.5 netbsd-11-0-RC1:1.5 perseant-exfatfs-base-20250801:1.5 netbsd-11:1.5.0.6 netbsd-11-base:1.5 netbsd-10-1-RELEASE:1.5 perseant-exfatfs-base-20240630:1.5 perseant-exfatfs:1.5.0.4 perseant-exfatfs-base:1.5 netbsd-10-0-RELEASE:1.5 netbsd-10-0-RC6:1.5 netbsd-10-0-RC5:1.5 netbsd-10-0-RC4:1.5 netbsd-10-0-RC3:1.5 netbsd-10-0-RC2:1.5 netbsd-10-0-RC1:1.5 netbsd-10:1.5.0.2 netbsd-10-base:1.5 cjep_sun2x-base1:1.2 cjep_sun2x:1.1.0.4 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 cjep_staticlib_x:1.1.0.2 cjep_staticlib_x-base:1.1; locks; strict; comment @# @; 1.5 date 2022.11.08.06.06.54; author blymn; state Exp; branches; next 1.4; commitid xASVbVH0arwowR0E; 1.4 date 2021.06.22.07.29.16; author blymn; state Exp; branches; next 1.3; commitid ZkgYkPPk4dUmb6YC; 1.3 date 2021.06.15.22.21.09; author blymn; state Exp; branches; next 1.2; commitid RDeTko7vkDdVkhXC; 1.2 date 2021.06.06.04.57.58; author blymn; state Exp; branches; next 1.1; commitid Uu4W0s5kB0REP1WC; 1.1 date 2020.10.24.04.46.17; author blymn; state Exp; branches 1.1.4.1; next ; commitid NIvewNVnS9jX07tC; 1.1.4.1 date 2021.06.06.20.30.54; author cjep; state Exp; branches; next ; commitid XNEGuB48YPLw17WC; desc @@ 1.5 log @ * Uncomment the slk_wset test which was previously commented out due to incorrect output as this bug has been fixed. * Added a check file to verify the slk_wset output. @ text @include start_slk # test slk attributes call OK slk_set 1 "one" 0 call OK slk_refresh call OK slk_attron `\003\000` call OK slk_set 1 "one" 1 call OK slk_refresh call OK slk_attroff `\002\000` call OK slk_set 1 "one" 2 call OK slk_refresh call OK slk_attrset `\006\000` call OK slk_set 8 "eight!!!" 1 call OK slk_set 5 "five" 1 call OK slk_refresh # test slk_label call "one" slk_label 1 call "eight!!!" slk_label 8 call "five" slk_label 5 call NULL slk_label 2 compare slk1.chk # test slk_clear call OK slk_clear compare slk2.chk # test slk_restore call OK slk_restore #call OK slk_refresh compare slk3.chk # test slk_noutrefresh call OK slk_set 2 "two" 0 call OK slk_noutrefresh call OK refresh compare slk4.chk # test slk_touch call OK slk_touch call OK slk_set 2 "two" 1 call OK slk_refresh compare slk5.chk # test slk_color call OK start_color call OK init_pair 4 $COLOR_RED $COLOR_GREEN call OK slk_color 4 call OK slk_set 4 "four" 2 call OK slk_refresh compare slk6.chk # test slk_wset wchar WSTR [0x3401, "a", 0x3401, "b"] call OK slk_wset 3 $WSTR 1 call OK slk_refresh compare slk7.chk @ 1.4 log @Fix slk test and check files due to libcurses slk changes. @ text @d57 4 a60 4 # [buggy??] 'b' should be printed as (wcswidth(wstr) == 6) <= 8 #wchar WSTR [0x3401, "a", 0x3401, "b"] #call OK slk_wset 3 $WSTR 1 #call OK slk_refresh @ 1.3 log @Restore the slk_wset test after fixing a but in libcurses. @ text @a56 1 # returning ERR now - blymn 20210606 d58 3 a60 3 wchar WSTR [0x3401, "a", 0x3401, "b"] call OK slk_wset 3 $WSTR 1 call OK slk_refresh @ 1.2 log @New tests and updates for corrected behaviour due to fix for PR56224 * Added extra testing to the addstr test to demonstrate bug described in PR#56224 and validate case when scrolling enabled still works. * Fixed slk test, the slk_init output changed due to corrected wrapping, slk_restore no longer returns ERR probably due to addwchar no longer returning ERR when an implicit scroll was attempted when scrolling disabled. Commented out the slk_wset test, this is now returning ERR instead of misbehaving, needs investigation. @ text @d59 3 a61 3 #wchar WSTR [0x3401, "a", 0x3401, "b"] #call OK slk_wset 3 $WSTR 1 #call OK slk_refresh @ 1.1 log @Merge in code from Google Summer of Code project which dramatically increases the number of tests performed. Thanks to Naman Jain for his excellent work on this GSoC project. @ text @d32 2 a33 4 # this returns error [buggy??], ideally slk_restore must have returned OK and must have performed refresh operation # There should not be need of explicit refresh call ERR slk_restore call OK slk_refresh d57 1 d59 3 a61 3 wchar WSTR [0x3401, "a", 0x3401, "b"] call OK slk_wset 3 $WSTR 1 call OK slk_refresh @ 1.1.4.1 log @sync with head @ text @d32 4 a35 2 call OK slk_restore #call OK slk_refresh a58 1 # returning ERR now - blymn 20210606 d60 3 a62 3 #wchar WSTR [0x3401, "a", 0x3401, "b"] #call OK slk_wset 3 $WSTR 1 #call OK slk_refresh @