🔧 Tweak fuzzyness
This commit is contained in:
+5
-3
@@ -91,7 +91,7 @@ fail() {
|
|||||||
# script exits via the fail() method above.
|
# script exits via the fail() method above.
|
||||||
find_target() {
|
find_target() {
|
||||||
echo "Looking for ${1} on the screen."
|
echo "Looking for ${1} on the screen."
|
||||||
POS=$(do_in_pod find-target.sh "${1}") || true
|
POS=$(do_in_pod find-target.sh -f 0.02 "${1}") || true
|
||||||
if [[ -z "${POS}" ]]; then
|
if [[ -z "${POS}" ]]; then
|
||||||
fail "${2}"
|
fail "${2}"
|
||||||
fi
|
fi
|
||||||
@@ -113,8 +113,10 @@ set_setting() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# This opens the extensions preferences dialog and captures two images: One during the
|
# This opens the extensions preferences dialog and captures two images: One during the
|
||||||
# window-open animation, and one during the window-close animation.
|
# window-open animation, and one during the window-close animation. For each capture, a
|
||||||
# The images are then compared to reference images.
|
# reference image is searched. The sleeps are a bit excessive, but it's difficult to get
|
||||||
|
# consistent results with shorter sleeps. The animations are shown for five seconds, so
|
||||||
|
# we also have to make sure that one animation is finished before starting the next one.
|
||||||
test_effect() {
|
test_effect() {
|
||||||
echo "Testing ${1} effect."
|
echo "Testing ${1} effect."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user