tests: add test on invalid DECFRA/DECERA and absent parameters

This commit is contained in:
Boris Faure 2018-11-26 21:08:42 +01:00
parent d43110e0fd
commit 77bacdac37
2 changed files with 32 additions and 0 deletions

31
tests/decera-decfra-extra.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh
# fill space with E
printf '\033#8'
# set color
printf '\033[46;31;3m'
# goto 80;25 (CUP) and back to 0;0
printf '\033[26;80HZ'
printf '\033[H'
#DECFRA
printf '\033[64;10;10;;$x'
printf '\033[65;;;8;8;$x'
printf '\033[66;6;;150;3$x'
printf '\033[67;;6;9;150$x'
# invalid coordinates
printf '\033[68;30;20;10;10$x'
# invalid characters
printf '\033[;10;10;20;20$x'
printf '\033[31;10;10;20;20$x'
printf '\033[127;10;10;20;20$x'
printf '\033[159;10;10;20;20$x'
#DECERA
printf '\033[15;15;;$z'
printf '\033[;;3;3$z'
printf '\033[6;;150;3$z'
printf '\033[3;20;;150$z'
# invalid coordinates
printf '\033[30;20;10;10$z'

View File

@ -2,4 +2,5 @@ decfra-no-restrict-cursor.sh 236d1c32fe49c8762ad204510117b1da
decfra-restrict-cursor.sh 898682203275b186e6c81424b93b1b79
decera-no-restrict-cursor.sh d92d38dfe6fd6b4100e3f0dac0e0a405
decera-restrict-cursor.sh baae3f0eef7e6f0032ba74f11ee306f6
decera-decfra-extra.sh 53d28f0d90c30aefd0b9176572c47f63
cursor-movements.sh 7ebb03610346e8fa56e171c55e7e2ec5