billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=6761f05d0617dc4c5724901d18cebde77c5913cf

commit 6761f05d0617dc4c5724901d18cebde77c5913cf
Author: Boris Faure <[email protected]>
Date:   Fri May 15 00:18:49 2020 +0200

    test: one on detecting colors
---
 tests/color_link_sharp.sh | 91 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/tests.results       |  1 +
 2 files changed, 92 insertions(+)

diff --git a/tests/color_link_sharp.sh b/tests/color_link_sharp.sh
new file mode 100755
index 0000000..2c6122d
--- /dev/null
+++ b/tests/color_link_sharp.sh
@@ -0,0 +1,91 @@
+#!/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                          Not Passing\r\n'
+printf ' =======                          ===========\r\n'
+printf ' #123456                          ##ff00ff \r\n'
+printf ' #ffffff                          #ff00ff# \r\n'
+printf ' #f9472aa8                        #fgfgfg \r\n'
+printf ' #fFaAbBcC                        #fffffffff \r\n'
+printf ' #0af                             #ff \r\n'
+printf ' #a098                            ff00ff\r\n'
+printf '                                  >ff00ff\r\n'
+
+printf '\r\n(highlighted is where the mouse is when testing'
+printf '\r\n whether there is a color underneath)'
+
+##
+# Passing
+##
+
+##  #123456
+printf '\033}tm;30;40\0'
+printf '\033}tlc;1;2;7;2;18;52;86;255\0'
+
+##  #ffffff
+printf '\033}tm;48;52\0'
+printf '\033}tlc;1;3;7;3;255;255;255;255\0'
+
+##  #f9472aa8
+printf '\033}tm;12;67\0'
+printf '\033}tlc;1;4;9;4;249;71;42;168\0'
+
+##  #fFaAbBcC
+printf '\033}tm;26;82\0'
+printf '\033}tlc;1;5;9;5;255;170;187;204\0'
+
+##  #0af
+printf '\033}tm;35;98\0'
+printf '\033}tlc;1;6;4;6;0;160;240;255\0'
+
+##  #a098
+printf '\033}tm;16;117\0'
+printf '\033}tlc;1;7;5;7;160;0;144;128\0'
+
+
+##
+# Not passing
+##
+
+##
+printf '\033}tm;195;65\0'
+printf '\033}tlcn\0'
+
+##  ##ff00ff
+printf '\033}tm;263;38\0'
+printf '\033}tlcn\0'
+
+##  #ff00ff#
+printf '\033}tm;278;55\0'
+printf '\033}tlcn\0'
+
+##  #fgfgfg
+printf '\033}tm;248;71\0'
+printf '\033}tlcn\0'
+
+##  #fffffffff
+printf '\033}tm;274;85\0'
+printf '\033}tlcn\0'
+
+##  #ff
+printf '\033}tm;249;100\0'
+printf '\033}tlcn\0'
+
+##  ff00ff
+printf '\033}tm;263;113\0'
+printf '\033}tlcn\0'
+
+##  >ff00ff
+printf '\033}tm;252;131\0'
+printf '\033}tlcn\0'
diff --git a/tests/tests.results b/tests/tests.results
index 0468d5a..5e31c03 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -138,3 +138,4 @@ selection_box_scrolls_down.sh 
c0fc70e8d865236d66edc7ad13af4dbe
 true_color_cache_thrashing.sh 34df56d44685b91eed2802167f48f3c4
 true_color_cache_reuse.sh ab8e074716821d8c213a01729a57f867
 selection_word_low_ascii_separators.sh 5fa3616561291a62dc4a9e8a32678eab
+color_link_sharp.sh 08c3284c8c4072264e74b8721b0fd579

-- 


Reply via email to