www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 529d6a67f0714637fada42e7633911583def0686
parent d53e7ae90806b1e0fb00c084e9beb55f07dd4d3e
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Fri, 20 Jul 2018 23:48:56 +0200

Updated sikuli test for macos

Diffstat:
Atest/check-gui-sh-mac.sikuli/1530638293676.png | 0
Atest/check-gui-sh-mac.sikuli/check-gui-sh-mac.html | 76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atest/check-gui-sh-mac.sikuli/check-gui-sh-mac.py | 1+
Mtest/gui-sh-mac.sh | 2+-
4 files changed, 78 insertions(+), 1 deletion(-)

diff --git a/test/check-gui-sh-mac.sikuli/1530638293676.png b/test/check-gui-sh-mac.sikuli/1530638293676.png Binary files differ. diff --git a/test/check-gui-sh-mac.sikuli/check-gui-sh-mac.html b/test/check-gui-sh-mac.sikuli/check-gui-sh-mac.html @@ -0,0 +1,76 @@ + +<html> + <head> + <style type="text/css"> + .sikuli-code { + font-size: 20px; + font-family: "Osaka-mono", Monospace; + line-height: 1.5em; + display:table-cell; + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + width: 99%; /* remove horizontal scroll-bar when viewing in IE7 */ + } + .sikuli-code img { + vertical-align: middle; + margin: 2px; + border: 1px solid #ccc; + padding: 2px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + -moz-box-shadow: 1px 1px 1px gray; + -webkit-box-shadow: 1px 1px 2px gray; + } + .kw { + color: blue; + } + .skw { + color: rgb(63, 127, 127); + } + + .str { + color: rgb(128, 0, 0); + } + + .dig { + color: rgb(128, 64, 0); + } + + .cmt { + color: rgb(200, 0, 200); + } + + h2 { + display: inline; + font-weight: normal; + } + + .info { + border-bottom: 1px solid #ddd; + padding-bottom: 5px; + margin-bottom: 20px; + display: none; + } + + a { + color: #9D2900; + } + + body { + font-family: "Trebuchet MS", Arial, Sans-Serif; + } + + </style> + </head> +<body> +<div class="info"> +<h2>check-gui-sh-mac.sikuli</h2> <a href="check-gui-sh-mac.zip">(Download this script)</a> +</div> +<pre class="sikuli-code"> +<span class="skw">wait</span>(<img src="1530638293676.png" />, <span class="dig">10</span>) +</pre> +</body> +</html> diff --git a/test/check-gui-sh-mac.sikuli/check-gui-sh-mac.py b/test/check-gui-sh-mac.sikuli/check-gui-sh-mac.py @@ -0,0 +1 @@ +wait("1530638293676.png", 10) diff --git a/test/gui-sh-mac.sh b/test/gui-sh-mac.sh @@ -12,7 +12,7 @@ os_filename="$(dirname "$1")/$(basename "$1")" osascript -e 'tell app "Terminal" to activate' osascript -e 'tell app "Terminal" to do script "'"$PWD"'/os.bat"' & pid=$! -runsikulix -r test/check-gui-sh.sikuli && exitcode=$? || exitcode=$? +runsikulix -r test/check-gui-sh-mac.sikuli && exitcode=$? || exitcode=$? screencapture "./deploy-screenshots/$(basename "$0" .sh).png"