mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
bf0120f73d
Whether or not switches include shapes to indicate their ON/OFF state is currently controlled by the stylesheet (in particular the HighContrast style). However there are use cases for both using the HighContrast style without shapes, and for using shapes with the regular stylesheet, so follow the newly added "show-status-shapes" setting instead. https://gitlab.gnome.org/GNOME/gtk/-/issues/5354
21 lines
420 B
Bash
Executable File
21 lines
420 B
Bash
Executable File
#! /bin/bash
|
|
|
|
GTK_QUERY_SETTINGS=${GTK_QUERY_SETTINGS:-gtk4-query-settings}
|
|
TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}
|
|
|
|
shopt -s nullglob
|
|
|
|
echo "1..1"
|
|
|
|
name=gtk-query-settings
|
|
result=$TEST_RESULT_DIR/$name.out
|
|
$GTK_QUERY_SETTINGS 2>/dev/null >$result
|
|
EXPECTED=51
|
|
SEEN=$(wc -l $result | cut -f1 -d' ')
|
|
|
|
if [ $SEEN -eq $EXPECTED ]; then
|
|
echo "ok 1 $name."
|
|
else
|
|
echo "not ok 1 $name. Expected: $EXPECTED. Seen: $SEEN"
|
|
fi
|