From 1e8d5db14c2c9800ff0b2fb6625f1158ac763458 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Fri, 29 May 2020 23:22:03 +0200 Subject: [PATCH] tests: on color links found in EDC files --- tests/color_link_edc.sh | 83 +++++++++++++++++++++++++++++++++++++++++ tests/tests.results | 1 + 2 files changed, 84 insertions(+) create mode 100755 tests/color_link_edc.sh diff --git a/tests/color_link_edc.sh b/tests/color_link_edc.sh new file mode 100755 index 00000000..57762275 --- /dev/null +++ b/tests/color_link_edc.sh @@ -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' + diff --git a/tests/tests.results b/tests/tests.results index 5e31c03c..f9903151 100644 --- a/tests/tests.results +++ b/tests/tests.results @@ -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