testsuite/a11y: Don't check minimum increment

This value is highly sensitive to changes in the theme; we
don't want to have to tweak hardcoded integers in this test case
every time we rev gnome-themes-standard.

Future iterations could do more heuristic matching, but this
is enough for now.

https://bugzilla.gnome.org/show_bug.cgi?id=704747
This commit is contained in:
Colin Walters 2013-07-23 15:39:56 +01:00
parent c7574bb6c8
commit e6c5faed73
9 changed files with 8 additions and 27 deletions

View File

@ -364,7 +364,6 @@ for details, visit http://www.gnu.org/licenses/gpl.html
minimum value: 0.000000
maximum value: 0.000000
current value: 0.000000
minimum increment: 39.800000
unnamed-GtkRangeAccessible-3
"scroll bar"
parent: scrolledwindow1
@ -377,7 +376,6 @@ for details, visit http://www.gnu.org/licenses/gpl.html
minimum value: 0.000000
maximum value: 0.000000
current value: 0.000000
minimum increment: 14.400000
unnamed-GtkNotebookPageAccessible-4
"page tab"
parent: notebook
@ -455,7 +453,6 @@ for details, visit http://www.gnu.org/licenses/gpl.html
minimum value: 0.000000
maximum value: 0.000000
current value: 0.000000
minimum increment: 39.800000
unnamed-GtkRangeAccessible-6
"scroll bar"
parent: scrolledwindow2
@ -468,7 +465,6 @@ for details, visit http://www.gnu.org/licenses/gpl.html
minimum value: 0.000000
maximum value: 0.000000
current value: 0.000000
minimum increment: 14.400000
dialog-action_area1
"filler"
parent: dialog-vbox1

View File

@ -257,7 +257,9 @@ dump_text_attributes (GString *string,
for (l = attributes; l; l = l->next)
{
attr = l->data;
/* don't dump values that depend on the environment */
/* don't dump values that depend on the environment or too
* closely on the exact theme pixels.
*/
if (strcmp (attr->name, "family-name") == 0 ||
strcmp (attr->name, "size") == 0 ||
strcmp (attr->name, "weight") == 0 ||
@ -459,14 +461,10 @@ dump_atk_value (AtkValue *atk_value,
g_value_reset (&value);
g_value_reset (&svalue);
atk_value_get_minimum_increment (atk_value, &value);
if (g_value_transform (&value, &svalue))
g_string_append_printf (string, "%*sminimum increment: %s\n", depth, "", g_value_get_string (&svalue));
else
g_string_append_printf (string, "%*sminimum increment: %s\n", depth, "", G_VALUE_TYPE_NAME (&value));
g_value_reset (&value);
g_value_reset (&svalue);
/* Don't dump minimum increment; it changes too much in response to
* theme changes.
* https://bugzilla.gnome.org/show_bug.cgi?id=704747
*/
}
static void

View File

@ -282,7 +282,6 @@ window1
minimum value: 0.000000
maximum value: 255.000000
current value: 255.000000
minimum increment: 1.000000
Opacity:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -381,7 +380,6 @@ window1
minimum value: 0.000000
maximum value: 255.000000
current value: 255.000000
minimum increment: 1.000000
Blue:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -471,7 +469,6 @@ window1
minimum value: 0.000000
maximum value: 255.000000
current value: 255.000000
minimum increment: 1.000000
Green:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -561,7 +558,6 @@ window1
minimum value: 0.000000
maximum value: 255.000000
current value: 255.000000
minimum increment: 1.000000
Red:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -651,7 +647,6 @@ window1
minimum value: 0.000000
maximum value: 100.000000
current value: 100.000000
minimum increment: 1.000000
Value:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -741,7 +736,6 @@ window1
minimum value: 0.000000
maximum value: 100.000000
current value: 0.000000
minimum increment: 1.000000
Saturation:
"label"
parent: unnamed-GtkContainerAccessible-11
@ -831,7 +825,6 @@ window1
minimum value: 0.000000
maximum value: 360.000000
current value: 0.000000
minimum increment: 1.000000
Hue:
"label"
parent: unnamed-GtkContainerAccessible-11

View File

@ -327,4 +327,3 @@ window1
minimum value: 0.500000
maximum value: 99.500000
current value: 45.500000
minimum increment: 0.500000

View File

@ -68,7 +68,7 @@ window1
"filler"
parent: bar1
index: 1
state: enabled sensitive showing vertical visible
state: enabled horizontal sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget

View File

@ -19,7 +19,6 @@ window1
minimum value: 0
maximum value: 0
current value: 0
minimum increment: 0
label1
"label"
parent: paned1

View File

@ -19,4 +19,3 @@ window1
minimum value: 0.000000
maximum value: 1.000000
current value: 0.500000
minimum increment: 0.000000

View File

@ -28,7 +28,6 @@ window1
minimum value: 0.500000
maximum value: 99.500000
current value: 45.500000
minimum increment: 0.500000
scale1
"slider"
parent: grid1
@ -43,4 +42,3 @@ window1
minimum value: 0.500000
maximum value: 99.500000
current value: 45.500000
minimum increment: 0.500000

View File

@ -20,4 +20,3 @@ window1
minimum value: -100.000000
maximum value: 100.000000
current value: -42.000000
minimum increment: 1.000000