1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#include <stdio.h>
#include <gtk/gtk.h>
/* Maximum characters in the output buffer */
#define MAX_LINE_SIZE 1000
/* Maximum number of tests */
#define MAX_TESTS 30
/* Maximum number of test windows */
#define MAX_WINDOWS 5
/* Maximum number of parameters any test can have */
#define MAX_PARAMS 3
/* Information on the Output Window */
typedef struct
{
GtkWidget *outputWindow;
GtkTextBuffer *outputBuffer;
GtkTextIter outputIter;
}OutputWindow;
typedef void (*TLruntest) (AtkObject * obj, gint win_num);
/* General purpose functions */
gboolean already_accessed_atk_object (AtkObject *obj);
AtkObject* find_object_by_role (AtkObject *obj,
AtkRole *role,
gint num_roles);
AtkObject* find_object_by_type (AtkObject *obj,
gchar *type);
AtkObject* find_object_by_name_and_role (AtkObject *obj,
const gchar *name,
AtkRole *roles,
gint num_roles);
AtkObject* find_object_by_accessible_name_and_role (AtkObject *obj,
const gchar *name,
AtkRole *roles,
gint num_roles);
void display_children (AtkObject *obj,
gint depth,
gint child_number);
void display_children_to_depth (AtkObject *obj,
gint to_depth,
gint depth,
gint child_number);
/* Test GUI functions */
gint create_windows (AtkObject *obj,
TLruntest runtest,
OutputWindow **outwin);
gboolean add_test (gint window,
gchar *name,
gint num_params,
gchar *parameter_names[],
gchar *default_names[]);
void set_output_buffer (gchar *output);
gchar **tests_set (gint window,
int *count);
gchar *get_arg_of_func (gint window,
gchar *function_name,
gchar *arg_label);
int string_to_int (const char *the_string);
gboolean isVisibleDialog (void);
|