tests: on color links found in EDC files

This commit is contained in:
Boris Faure 2020-05-29 23:22:03 +02:00
parent 2f040f9532
commit 1e8d5db14c
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
2 changed files with 84 additions and 0 deletions

83
tests/color_link_edc.sh Executable file
View File

@ -0,0 +1,83 @@
#!/bin/sh
# char width: 7
# char height: 15
# set color
printf '\033[46;31;3m'
# clear screen
printf '\033[2J'
# move to 0; 0
printf '\033[0;0H'
printf ' Passing\r\n'
printf ' =======\r\n'
printf ' color: 51 153 255 32;\r\n'
printf ' color2: 244 99 93 127;\r\n'
printf ' color3: 149 181 16 234;\r\n'
printf ' color: #3399ff20;\r\n'
printf ' color\t:\t244\t99\t93\t127;\r\n'
printf ' type: RECT;color: 51 153 255 32;\r\n'
printf '\r\n'
printf ' Not Passing\r\n'
printf ' ===========\r\n'
printf ' color: COL;\r\n'
printf '\r\n'
printf '(highlighted is where the mouse is when testing\r\n'
printf 'whether there is a color underneath)'
##
# Passing
##
## color: 51 153 255 32;
printf '\033}tm;81;39\0'
printf '\033}tlc;1;2;23;2;51;153;255;32\0'
printf '\033}tm;20;37\0'
printf '\033}tlc;1;2;23;2;51;153;255;32\0'
## color2: 244 99 93 127;
printf '\033}tm;36;52\0'
printf '\033}tlc;1;3;23;3;244;99;93;127\0'
printf '\033}tm;136;52\0'
printf '\033}tlc;1;3;23;3;244;99;93;127\0'
## color3: 149 181 16 234;
printf '\033}tm;163;70\0'
printf '\033}tlc;1;4;23;4;149;181;16;234\0'
printf '\033}tm;31;73\0'
printf '\033}tlc;1;4;23;4;149;181;16;234\0'
## color: #3399ff20;
printf '\033}tm;107;82\0'
printf '\033}tlc;8;5;16;5;51;153;255;32\0'
printf '\033}tm;18;82\0'
printf '\033}tlc;1;5;16;5;51;153;255;32\0'
## color\t:\t244\t99\93\t127;
printf '\033}tm;33;102\0'
printf '\033}tlc;1;6;42;6;244;99;93;127\0'
printf '\033}tm;178;98\0'
printf '\033}tlc;1;6;42;6;244;99;93;127\0'
## type: RECT;color: 51 153 255 32;
printf '\033}tm;199;112\0'
printf '\033}tlc;12;7;31;7;51;153;255;32\0'
printf '\033}tm;98;118\0'
printf '\033}tlc;12;7;31;7;51;153;255;32\0'
##
# Not passing
##
## color: COL;
printf '\033}tm;68;177\0'
printf '\033}tlcn\0'
printf '\033}tm;22;176\0'
printf '\033}tlcn\0'

View File

@ -139,3 +139,4 @@ true_color_cache_thrashing.sh 34df56d44685b91eed2802167f48f3c4
true_color_cache_reuse.sh ab8e074716821d8c213a01729a57f867
selection_word_low_ascii_separators.sh 5fa3616561291a62dc4a9e8a32678eab
color_link_sharp.sh 08c3284c8c4072264e74b8721b0fd579
color_link_edc.sh a6e4b47eb65c04da568b9662fd80b7e0