billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=851e68d1574fed7d9865d3632fb2961805efb052
commit 851e68d1574fed7d9865d3632fb2961805efb052 Author: Boris Faure <[email protected]> Date: Sun Feb 10 19:43:57 2019 +0100 add simple test on selections --- tests/selection_simple.sh | 29 +++++++++++++++++++++++++++++ tests/tests.results | 1 + 2 files changed, 30 insertions(+) diff --git a/tests/selection_simple.sh b/tests/selection_simple.sh new file mode 100755 index 0000000..839220d --- /dev/null +++ b/tests/selection_simple.sh @@ -0,0 +1,29 @@ +#!/bin/sh + + +# fill space with E +printf '\033#8' +# set color +printf '\033[46;31;3m' + +# mouse down to start selection +printf '\033}td;20;10;1;0;0\0' + +# mouse move +printf '\033}tm;48;10\0' + +# mouse up +printf '\033}tu;48;10;1;0;0\0' + +# selection is 'EEEEE' +printf '\033}tiEEEEE\0' + +# insert E in color +printf '\033[;4HE' +# selection is 'EEEEE' +printf '\033}tiEEEEE\0' + +# insert a +printf 'a' +# no more selection +printf '\033}tn' diff --git a/tests/tests.results b/tests/tests.results index d4ad440..b6bc286 100644 --- a/tests/tests.results +++ b/tests/tests.results @@ -77,3 +77,4 @@ uts.sh 1c72fe49e7f98aac137d436ac4906bc8 vpa.sh c712e5c3c5e31a362e4257200d92d9a6 decswbv.sh f7dde335d44f8691041d40c3efd24ffb c2.sh 1ee773a0e5ac3c0217d08e4afdb1fef6 +selection_simple.sh 6e1f48cd44beba3923e3e84ed4238dac --
