@gtkx/testing 1.0.0-rc.1 → 1.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/act.d.ts +6 -6
- package/dist/act.d.ts.map +1 -1
- package/dist/act.js +34 -26
- package/dist/act.js.map +1 -1
- package/dist/bound-queries.d.ts +4 -3
- package/dist/bound-queries.d.ts.map +1 -1
- package/dist/bound-queries.js.map +1 -1
- package/dist/build-queries.d.ts +5 -5
- package/dist/build-queries.d.ts.map +1 -1
- package/dist/build-queries.js +21 -9
- package/dist/build-queries.js.map +1 -1
- package/dist/cleanup-registry.d.ts +4 -3
- package/dist/cleanup-registry.d.ts.map +1 -1
- package/dist/cleanup-registry.js +13 -3
- package/dist/cleanup-registry.js.map +1 -1
- package/dist/config.d.ts +5 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -9
- package/dist/config.js.map +1 -1
- package/dist/editable.d.ts +6 -5
- package/dist/editable.d.ts.map +1 -1
- package/dist/editable.js +7 -5
- package/dist/editable.js.map +1 -1
- package/dist/errors.d.ts +7 -6
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +64 -48
- package/dist/errors.js.map +1 -1
- package/dist/fire-event.d.ts +2 -1
- package/dist/fire-event.d.ts.map +1 -1
- package/dist/fire-event.js +2 -1
- package/dist/fire-event.js.map +1 -1
- package/dist/frame-sync.d.ts +2 -1
- package/dist/frame-sync.d.ts.map +1 -1
- package/dist/frame-sync.js +28 -21
- package/dist/frame-sync.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/matchers.d.ts +38 -34
- package/dist/matchers.d.ts.map +1 -1
- package/dist/matchers.js +72 -58
- package/dist/matchers.js.map +1 -1
- package/dist/pretty-widget.d.ts +6 -4
- package/dist/pretty-widget.d.ts.map +1 -1
- package/dist/pretty-widget.js +64 -24
- package/dist/pretty-widget.js.map +1 -1
- package/dist/queries.d.ts +143 -86
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +231 -147
- package/dist/queries.js.map +1 -1
- package/dist/register-test-hooks.js +2 -1
- package/dist/register-test-hooks.js.map +1 -1
- package/dist/render-hook.d.ts +3 -2
- package/dist/render-hook.d.ts.map +1 -1
- package/dist/render-hook.js +2 -1
- package/dist/render-hook.js.map +1 -1
- package/dist/render.d.ts +3 -2
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +24 -18
- package/dist/render.js.map +1 -1
- package/dist/role-helpers.d.ts +6 -5
- package/dist/role-helpers.d.ts.map +1 -1
- package/dist/role-helpers.js +16 -12
- package/dist/role-helpers.js.map +1 -1
- package/dist/screen.d.ts +4 -3
- package/dist/screen.d.ts.map +1 -1
- package/dist/screen.js +13 -11
- package/dist/screen.js.map +1 -1
- package/dist/screenshot.d.ts +4 -3
- package/dist/screenshot.d.ts.map +1 -1
- package/dist/screenshot.js +43 -36
- package/dist/screenshot.js.map +1 -1
- package/dist/suggestions.d.ts +11 -6
- package/dist/suggestions.d.ts.map +1 -1
- package/dist/suggestions.js +10 -5
- package/dist/suggestions.js.map +1 -1
- package/dist/traversal.d.ts +7 -7
- package/dist/traversal.d.ts.map +1 -1
- package/dist/traversal.js +17 -11
- package/dist/traversal.js.map +1 -1
- package/dist/types.d.ts +39 -24
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/user-event/adjustment.d.ts +5 -3
- package/dist/user-event/adjustment.d.ts.map +1 -1
- package/dist/user-event/adjustment.js +6 -4
- package/dist/user-event/adjustment.js.map +1 -1
- package/dist/user-event/click.d.ts +6 -5
- package/dist/user-event/click.d.ts.map +1 -1
- package/dist/user-event/click.js +29 -21
- package/dist/user-event/click.js.map +1 -1
- package/dist/user-event/controller.d.ts +6 -5
- package/dist/user-event/controller.d.ts.map +1 -1
- package/dist/user-event/controller.js +9 -6
- package/dist/user-event/controller.js.map +1 -1
- package/dist/user-event/dispatch.d.ts +3 -3
- package/dist/user-event/dispatch.d.ts.map +1 -1
- package/dist/user-event/dispatch.js +3 -2
- package/dist/user-event/dispatch.js.map +1 -1
- package/dist/user-event/event-wrapper.d.ts +2 -1
- package/dist/user-event/event-wrapper.d.ts.map +1 -1
- package/dist/user-event/event-wrapper.js +27 -16
- package/dist/user-event/event-wrapper.js.map +1 -1
- package/dist/user-event/gesture.d.ts +18 -14
- package/dist/user-event/gesture.d.ts.map +1 -1
- package/dist/user-event/gesture.js +70 -37
- package/dist/user-event/gesture.js.map +1 -1
- package/dist/user-event/index.d.ts +17 -10
- package/dist/user-event/index.d.ts.map +1 -1
- package/dist/user-event/index.js +7 -3
- package/dist/user-event/index.js.map +1 -1
- package/dist/user-event/keyboard.d.ts +4 -3
- package/dist/user-event/keyboard.d.ts.map +1 -1
- package/dist/user-event/keyboard.js +89 -58
- package/dist/user-event/keyboard.js.map +1 -1
- package/dist/user-event/pointer.d.ts +7 -3
- package/dist/user-event/pointer.d.ts.map +1 -1
- package/dist/user-event/pointer.js +4 -1
- package/dist/user-event/pointer.js.map +1 -1
- package/dist/user-event/selection.d.ts +3 -2
- package/dist/user-event/selection.d.ts.map +1 -1
- package/dist/user-event/selection.js +26 -27
- package/dist/user-event/selection.js.map +1 -1
- package/dist/user-event/state.d.ts +3 -2
- package/dist/user-event/state.d.ts.map +1 -1
- package/dist/user-event/state.js +2 -1
- package/dist/user-event/state.js.map +1 -1
- package/dist/user-event/text.d.ts +8 -7
- package/dist/user-event/text.d.ts.map +1 -1
- package/dist/user-event/text.js +39 -33
- package/dist/user-event/text.js.map +1 -1
- package/dist/wait-for.d.ts +5 -5
- package/dist/wait-for.d.ts.map +1 -1
- package/dist/wait-for.js +45 -30
- package/dist/wait-for.js.map +1 -1
- package/dist/widget-accessible-properties.d.ts +26 -25
- package/dist/widget-accessible-properties.d.ts.map +1 -1
- package/dist/widget-accessible-properties.js +106 -61
- package/dist/widget-accessible-properties.js.map +1 -1
- package/dist/within.d.ts +2 -1
- package/dist/within.d.ts.map +1 -1
- package/dist/within.js +2 -1
- package/dist/within.js.map +1 -1
- package/package.json +11 -9
- package/src/act.ts +44 -35
- package/src/bound-queries.ts +5 -4
- package/src/build-queries.ts +84 -43
- package/src/cleanup-registry.ts +18 -5
- package/src/config.ts +16 -12
- package/src/editable.ts +13 -6
- package/src/errors.ts +106 -45
- package/src/fire-event.ts +3 -1
- package/src/frame-sync.ts +38 -21
- package/src/index.ts +2 -1
- package/src/matchers.ts +158 -107
- package/src/pretty-widget.ts +114 -42
- package/src/queries.ts +422 -233
- package/src/register-test-hooks.ts +4 -1
- package/src/render-hook.tsx +10 -4
- package/src/render.tsx +58 -33
- package/src/role-helpers.ts +29 -16
- package/src/screen.ts +17 -12
- package/src/screenshot.ts +61 -38
- package/src/suggestions.ts +29 -10
- package/src/traversal.ts +35 -15
- package/src/types.ts +65 -32
- package/src/user-event/adjustment.ts +23 -10
- package/src/user-event/click.ts +49 -20
- package/src/user-event/controller.ts +21 -7
- package/src/user-event/dispatch.ts +4 -2
- package/src/user-event/event-wrapper.ts +42 -16
- package/src/user-event/gesture.ts +135 -50
- package/src/user-event/index.ts +19 -12
- package/src/user-event/keyboard.ts +147 -61
- package/src/user-event/pointer.ts +20 -8
- package/src/user-event/selection.ts +69 -32
- package/src/user-event/state.ts +4 -2
- package/src/user-event/text.ts +73 -38
- package/src/wait-for.ts +77 -36
- package/src/widget-accessible-properties.ts +218 -74
- package/src/within.ts +7 -4
package/dist/queries.d.ts
CHANGED
|
@@ -1,25 +1,143 @@
|
|
|
1
1
|
import * as Gtk from "@gtkx/gi/gtk";
|
|
2
|
-
import { type Container } from "./traversal.js";
|
|
3
2
|
import type { ByRoleOptions, Matcher, MatcherOptions, NormalizerFn, NormalizerOptions } from "./types.js";
|
|
3
|
+
import { type Container } from "./traversal.js";
|
|
4
|
+
type QueryFamilyReturns = {
|
|
5
|
+
queryBy: Gtk.Widget | null;
|
|
6
|
+
queryAllBy: Gtk.Widget[];
|
|
7
|
+
getBy: Gtk.Widget;
|
|
8
|
+
getAllBy: Gtk.Widget[];
|
|
9
|
+
findBy: Promise<Gtk.Widget>;
|
|
10
|
+
findAllBy: Promise<Gtk.Widget[]>;
|
|
11
|
+
};
|
|
12
|
+
type NamedFamily<Suffix extends string, Args extends unknown[]> = {
|
|
13
|
+
[K in keyof QueryFamilyReturns as `${K & string}${Suffix}`]: (container: Container, ...args: Args) => QueryFamilyReturns[K];
|
|
14
|
+
};
|
|
15
|
+
type BuiltinQueries = NamedFamily<"Role", [role: Gtk.AccessibleRole, options?: ByRoleOptions]> & NamedFamily<"LabelText", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"Text", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"Name", [name: Matcher, options?: MatcherOptions]> & NamedFamily<"PlaceholderText", [text: Matcher, options?: MatcherOptions]> & NamedFamily<"DisplayValue", [value: Matcher, options?: MatcherOptions]>;
|
|
16
|
+
declare const builtinQueries: BuiltinQueries;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the single widget with a matching accessible role and options, or null when none match.
|
|
19
|
+
* Throws when more than one matches.
|
|
20
|
+
*/
|
|
21
|
+
declare const queryByRole: BuiltinQueries["queryByRole"];
|
|
22
|
+
/** Returns every widget with a matching accessible role and options. Throws when none match. */
|
|
23
|
+
declare const getAllByRole: BuiltinQueries["getAllByRole"];
|
|
24
|
+
/**
|
|
25
|
+
* Returns the single widget with a matching accessible role and options.
|
|
26
|
+
* Throws when none or more than one matches.
|
|
27
|
+
*/
|
|
28
|
+
declare const getByRole: BuiltinQueries["getByRole"];
|
|
29
|
+
/**
|
|
30
|
+
* Waits for and returns every widget with a matching accessible role and options, retrying until at
|
|
31
|
+
* least one appears or the timeout elapses.
|
|
32
|
+
*/
|
|
33
|
+
declare const findAllByRole: BuiltinQueries["findAllByRole"];
|
|
34
|
+
/**
|
|
35
|
+
* Waits for and returns the single widget with a matching accessible role and options, retrying
|
|
36
|
+
* until it appears or the timeout elapses. Rejects when none or more than one matches.
|
|
37
|
+
*/
|
|
38
|
+
declare const findByRole: BuiltinQueries["findByRole"];
|
|
39
|
+
/**
|
|
40
|
+
* Returns the single widget with matching associated label text, or null when none match.
|
|
41
|
+
* Throws when more than one matches.
|
|
42
|
+
*/
|
|
43
|
+
declare const queryByLabelText: BuiltinQueries["queryByLabelText"];
|
|
44
|
+
/** Returns every widget with matching associated label text. Throws when none match. */
|
|
45
|
+
declare const getAllByLabelText: BuiltinQueries["getAllByLabelText"];
|
|
46
|
+
/** Returns the single widget with matching associated label text. Throws when none or more than one matches. */
|
|
47
|
+
declare const getByLabelText: BuiltinQueries["getByLabelText"];
|
|
48
|
+
/**
|
|
49
|
+
* Waits for and returns every widget with matching associated label text, retrying until at least
|
|
50
|
+
* one appears or the timeout elapses.
|
|
51
|
+
*/
|
|
52
|
+
declare const findAllByLabelText: BuiltinQueries["findAllByLabelText"];
|
|
53
|
+
/**
|
|
54
|
+
* Waits for and returns the single widget with matching associated label text, retrying until it
|
|
55
|
+
* appears or the timeout elapses. Rejects when none or more than one matches.
|
|
56
|
+
*/
|
|
57
|
+
declare const findByLabelText: BuiltinQueries["findByLabelText"];
|
|
58
|
+
/**
|
|
59
|
+
* Returns the single widget with matching rendered text content, or null when none match.
|
|
60
|
+
* Throws when more than one matches.
|
|
61
|
+
*/
|
|
62
|
+
declare const queryByText: BuiltinQueries["queryByText"];
|
|
63
|
+
/** Returns every widget with matching rendered text content. Throws when none match. */
|
|
64
|
+
declare const getAllByText: BuiltinQueries["getAllByText"];
|
|
65
|
+
/** Returns the single widget with matching rendered text content. Throws when none or more than one matches. */
|
|
66
|
+
declare const getByText: BuiltinQueries["getByText"];
|
|
67
|
+
/**
|
|
68
|
+
* Waits for and returns every widget with matching rendered text content, retrying until at least
|
|
69
|
+
* one appears or the timeout elapses.
|
|
70
|
+
*/
|
|
71
|
+
declare const findAllByText: BuiltinQueries["findAllByText"];
|
|
72
|
+
/**
|
|
73
|
+
* Waits for and returns the single widget with matching rendered text content, retrying until it
|
|
74
|
+
* appears or the timeout elapses. Rejects when none or more than one matches.
|
|
75
|
+
*/
|
|
76
|
+
declare const findByText: BuiltinQueries["findByText"];
|
|
77
|
+
/**
|
|
78
|
+
* Returns the single widget with a matching widget name, or null when none match.
|
|
79
|
+
* Throws when more than one matches.
|
|
80
|
+
*/
|
|
81
|
+
declare const queryByName: BuiltinQueries["queryByName"];
|
|
82
|
+
/** Returns every widget with a matching widget name. Throws when none match. */
|
|
83
|
+
declare const getAllByName: BuiltinQueries["getAllByName"];
|
|
84
|
+
/** Returns the single widget with a matching widget name. Throws when none or more than one matches. */
|
|
85
|
+
declare const getByName: BuiltinQueries["getByName"];
|
|
4
86
|
/**
|
|
5
|
-
*
|
|
87
|
+
* Waits for and returns every widget with a matching widget name, retrying until at least one
|
|
88
|
+
* appears or the timeout elapses.
|
|
89
|
+
*/
|
|
90
|
+
declare const findAllByName: BuiltinQueries["findAllByName"];
|
|
91
|
+
/**
|
|
92
|
+
* Waits for and returns the single widget with a matching widget name, retrying until it appears or
|
|
93
|
+
* the timeout elapses. Rejects when none or more than one matches.
|
|
94
|
+
*/
|
|
95
|
+
declare const findByName: BuiltinQueries["findByName"];
|
|
96
|
+
/**
|
|
97
|
+
* Returns the single widget with matching placeholder text, or null when none match.
|
|
98
|
+
* Throws when more than one matches.
|
|
99
|
+
*/
|
|
100
|
+
declare const queryByPlaceholderText: BuiltinQueries["queryByPlaceholderText"];
|
|
101
|
+
/** Returns every widget with matching placeholder text. Throws when none match. */
|
|
102
|
+
declare const getAllByPlaceholderText: BuiltinQueries["getAllByPlaceholderText"];
|
|
103
|
+
/** Returns the single widget with matching placeholder text. Throws when none or more than one matches. */
|
|
104
|
+
declare const getByPlaceholderText: BuiltinQueries["getByPlaceholderText"];
|
|
105
|
+
/**
|
|
106
|
+
* Waits for and returns every widget with matching placeholder text, retrying until at least one
|
|
107
|
+
* appears or the timeout elapses.
|
|
108
|
+
*/
|
|
109
|
+
declare const findAllByPlaceholderText: BuiltinQueries["findAllByPlaceholderText"];
|
|
110
|
+
/**
|
|
111
|
+
* Waits for and returns the single widget with matching placeholder text, retrying until it appears
|
|
112
|
+
* or the timeout elapses. Rejects when none or more than one matches.
|
|
113
|
+
*/
|
|
114
|
+
declare const findByPlaceholderText: BuiltinQueries["findByPlaceholderText"];
|
|
115
|
+
/**
|
|
116
|
+
* Returns the single widget with a matching display value, or null when none match.
|
|
117
|
+
* Throws when more than one matches.
|
|
118
|
+
*/
|
|
119
|
+
declare const queryByDisplayValue: BuiltinQueries["queryByDisplayValue"];
|
|
120
|
+
/** Returns every widget with a matching display value. Throws when none match. */
|
|
121
|
+
declare const getAllByDisplayValue: BuiltinQueries["getAllByDisplayValue"];
|
|
122
|
+
/** Returns the single widget with a matching display value. Throws when none or more than one matches. */
|
|
123
|
+
declare const getByDisplayValue: BuiltinQueries["getByDisplayValue"];
|
|
124
|
+
/**
|
|
125
|
+
* Waits for and returns every widget with a matching display value, retrying until at least one
|
|
126
|
+
* appears or the timeout elapses.
|
|
127
|
+
*/
|
|
128
|
+
declare const findAllByDisplayValue: BuiltinQueries["findAllByDisplayValue"];
|
|
129
|
+
/**
|
|
130
|
+
* Waits for and returns the single widget with a matching display value, retrying until it appears
|
|
131
|
+
* or the timeout elapses. Rejects when none or more than one matches.
|
|
132
|
+
*/
|
|
133
|
+
declare const findByDisplayValue: BuiltinQueries["findByDisplayValue"];
|
|
134
|
+
/**
|
|
135
|
+
* Builds the default text normalizer, which optionally trims surrounding whitespace and collapses
|
|
136
|
+
* runs of whitespace into single spaces.
|
|
6
137
|
* @param options Toggles for trimming and whitespace collapsing.
|
|
7
138
|
* @returns A function that normalizes a string for comparison against a matcher.
|
|
8
139
|
*/
|
|
9
|
-
|
|
10
|
-
type NamedFamily<Suffix extends string, Args extends unknown[]> = {
|
|
11
|
-
[P in `queryBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget | null;
|
|
12
|
-
} & {
|
|
13
|
-
[P in `queryAllBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget[];
|
|
14
|
-
} & {
|
|
15
|
-
[P in `getBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget;
|
|
16
|
-
} & {
|
|
17
|
-
[P in `getAllBy${Suffix}`]: (container: Container, ...args: Args) => Gtk.Widget[];
|
|
18
|
-
} & {
|
|
19
|
-
[P in `findBy${Suffix}`]: (container: Container, ...args: Args) => Promise<Gtk.Widget>;
|
|
20
|
-
} & {
|
|
21
|
-
[P in `findAllBy${Suffix}`]: (container: Container, ...args: Args) => Promise<Gtk.Widget[]>;
|
|
22
|
-
};
|
|
140
|
+
declare const getDefaultNormalizer: ({ trim, collapseWhitespace, }?: NormalizerOptions) => NormalizerFn;
|
|
23
141
|
/**
|
|
24
142
|
* Finds every widget under the container whose accessible role matches `role` and that satisfies the given options.
|
|
25
143
|
* Widgets excluded from the accessibility tree are skipped unless `options.hidden` is set.
|
|
@@ -28,15 +146,16 @@ type NamedFamily<Suffix extends string, Args extends unknown[]> = {
|
|
|
28
146
|
* @param options Additional accessible name, state, and value constraints.
|
|
29
147
|
* @returns Every matching widget, or an empty array when none match.
|
|
30
148
|
*/
|
|
31
|
-
|
|
149
|
+
declare function queryAllByRole(container: Container, role: Gtk.AccessibleRole, options?: ByRoleOptions): Gtk.Widget[];
|
|
32
150
|
/**
|
|
33
|
-
* Finds every widget associated with a label whose text matches: a Gtk.Label mnemonic target, the
|
|
151
|
+
* Finds every widget associated with a label whose text matches: a Gtk.Label mnemonic target, the
|
|
152
|
+
* widget's own accessible label, or its labelled-by relation.
|
|
34
153
|
* @param container Widget subtree to search.
|
|
35
154
|
* @param text Matcher for the label text.
|
|
36
155
|
* @param options Text matching options.
|
|
37
156
|
* @returns Every matching widget, or an empty array when none match.
|
|
38
157
|
*/
|
|
39
|
-
|
|
158
|
+
declare function queryAllByLabelText(container: Container, text: Matcher, options?: MatcherOptions): Gtk.Widget[];
|
|
40
159
|
/**
|
|
41
160
|
* Finds every widget whose rendered text content matches.
|
|
42
161
|
* @param container Widget subtree to search.
|
|
@@ -44,7 +163,7 @@ export declare const queryAllByLabelText: (container: Container, text: Matcher,
|
|
|
44
163
|
* @param options Text matching options.
|
|
45
164
|
* @returns Every matching widget, or an empty array when none match.
|
|
46
165
|
*/
|
|
47
|
-
|
|
166
|
+
declare function queryAllByText(container: Container, text: Matcher, options?: MatcherOptions): Gtk.Widget[];
|
|
48
167
|
/**
|
|
49
168
|
* Finds every widget whose widget name matches.
|
|
50
169
|
* @param container Widget subtree to search.
|
|
@@ -52,7 +171,7 @@ export declare const queryAllByText: (container: Container, text: Matcher, optio
|
|
|
52
171
|
* @param options Text matching options.
|
|
53
172
|
* @returns Every matching widget, or an empty array when none match.
|
|
54
173
|
*/
|
|
55
|
-
|
|
174
|
+
declare function queryAllByName(container: Container, name: Matcher, options?: MatcherOptions): Gtk.Widget[];
|
|
56
175
|
/**
|
|
57
176
|
* Finds every widget whose placeholder text matches.
|
|
58
177
|
* @param container Widget subtree to search.
|
|
@@ -60,7 +179,7 @@ export declare const queryAllByName: (container: Container, name: Matcher, optio
|
|
|
60
179
|
* @param options Text matching options.
|
|
61
180
|
* @returns Every matching widget, or an empty array when none match.
|
|
62
181
|
*/
|
|
63
|
-
|
|
182
|
+
declare function queryAllByPlaceholderText(container: Container, text: Matcher, options?: MatcherOptions): Gtk.Widget[];
|
|
64
183
|
/**
|
|
65
184
|
* Finds every widget whose current display value matches.
|
|
66
185
|
* @param container Widget subtree to search.
|
|
@@ -68,68 +187,6 @@ export declare const queryAllByPlaceholderText: (container: Container, text: Mat
|
|
|
68
187
|
* @param options Text matching options.
|
|
69
188
|
* @returns Every matching widget, or an empty array when none match.
|
|
70
189
|
*/
|
|
71
|
-
|
|
72
|
-
export
|
|
73
|
-
export declare const builtinQueries: BuiltinQueries;
|
|
74
|
-
/** Returns the single widget with a matching accessible role and options, or null when none match. Throws when more than one matches. */
|
|
75
|
-
export declare const queryByRole: BuiltinQueries["queryByRole"];
|
|
76
|
-
/** Returns every widget with a matching accessible role and options. Throws when none match. */
|
|
77
|
-
export declare const getAllByRole: BuiltinQueries["getAllByRole"];
|
|
78
|
-
/** Returns the single widget with a matching accessible role and options. Throws when none or more than one matches. */
|
|
79
|
-
export declare const getByRole: BuiltinQueries["getByRole"];
|
|
80
|
-
/** Waits for and returns every widget with a matching accessible role and options, retrying until at least one appears or the timeout elapses. */
|
|
81
|
-
export declare const findAllByRole: BuiltinQueries["findAllByRole"];
|
|
82
|
-
/** Waits for and returns the single widget with a matching accessible role and options, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
83
|
-
export declare const findByRole: BuiltinQueries["findByRole"];
|
|
84
|
-
/** Returns the single widget with matching associated label text, or null when none match. Throws when more than one matches. */
|
|
85
|
-
export declare const queryByLabelText: BuiltinQueries["queryByLabelText"];
|
|
86
|
-
/** Returns every widget with matching associated label text. Throws when none match. */
|
|
87
|
-
export declare const getAllByLabelText: BuiltinQueries["getAllByLabelText"];
|
|
88
|
-
/** Returns the single widget with matching associated label text. Throws when none or more than one matches. */
|
|
89
|
-
export declare const getByLabelText: BuiltinQueries["getByLabelText"];
|
|
90
|
-
/** Waits for and returns every widget with matching associated label text, retrying until at least one appears or the timeout elapses. */
|
|
91
|
-
export declare const findAllByLabelText: BuiltinQueries["findAllByLabelText"];
|
|
92
|
-
/** Waits for and returns the single widget with matching associated label text, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
93
|
-
export declare const findByLabelText: BuiltinQueries["findByLabelText"];
|
|
94
|
-
/** Returns the single widget with matching rendered text content, or null when none match. Throws when more than one matches. */
|
|
95
|
-
export declare const queryByText: BuiltinQueries["queryByText"];
|
|
96
|
-
/** Returns every widget with matching rendered text content. Throws when none match. */
|
|
97
|
-
export declare const getAllByText: BuiltinQueries["getAllByText"];
|
|
98
|
-
/** Returns the single widget with matching rendered text content. Throws when none or more than one matches. */
|
|
99
|
-
export declare const getByText: BuiltinQueries["getByText"];
|
|
100
|
-
/** Waits for and returns every widget with matching rendered text content, retrying until at least one appears or the timeout elapses. */
|
|
101
|
-
export declare const findAllByText: BuiltinQueries["findAllByText"];
|
|
102
|
-
/** Waits for and returns the single widget with matching rendered text content, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
103
|
-
export declare const findByText: BuiltinQueries["findByText"];
|
|
104
|
-
/** Returns the single widget with a matching widget name, or null when none match. Throws when more than one matches. */
|
|
105
|
-
export declare const queryByName: BuiltinQueries["queryByName"];
|
|
106
|
-
/** Returns every widget with a matching widget name. Throws when none match. */
|
|
107
|
-
export declare const getAllByName: BuiltinQueries["getAllByName"];
|
|
108
|
-
/** Returns the single widget with a matching widget name. Throws when none or more than one matches. */
|
|
109
|
-
export declare const getByName: BuiltinQueries["getByName"];
|
|
110
|
-
/** Waits for and returns every widget with a matching widget name, retrying until at least one appears or the timeout elapses. */
|
|
111
|
-
export declare const findAllByName: BuiltinQueries["findAllByName"];
|
|
112
|
-
/** Waits for and returns the single widget with a matching widget name, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
113
|
-
export declare const findByName: BuiltinQueries["findByName"];
|
|
114
|
-
/** Returns the single widget with matching placeholder text, or null when none match. Throws when more than one matches. */
|
|
115
|
-
export declare const queryByPlaceholderText: BuiltinQueries["queryByPlaceholderText"];
|
|
116
|
-
/** Returns every widget with matching placeholder text. Throws when none match. */
|
|
117
|
-
export declare const getAllByPlaceholderText: BuiltinQueries["getAllByPlaceholderText"];
|
|
118
|
-
/** Returns the single widget with matching placeholder text. Throws when none or more than one matches. */
|
|
119
|
-
export declare const getByPlaceholderText: BuiltinQueries["getByPlaceholderText"];
|
|
120
|
-
/** Waits for and returns every widget with matching placeholder text, retrying until at least one appears or the timeout elapses. */
|
|
121
|
-
export declare const findAllByPlaceholderText: BuiltinQueries["findAllByPlaceholderText"];
|
|
122
|
-
/** Waits for and returns the single widget with matching placeholder text, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
123
|
-
export declare const findByPlaceholderText: BuiltinQueries["findByPlaceholderText"];
|
|
124
|
-
/** Returns the single widget with a matching display value, or null when none match. Throws when more than one matches. */
|
|
125
|
-
export declare const queryByDisplayValue: BuiltinQueries["queryByDisplayValue"];
|
|
126
|
-
/** Returns every widget with a matching display value. Throws when none match. */
|
|
127
|
-
export declare const getAllByDisplayValue: BuiltinQueries["getAllByDisplayValue"];
|
|
128
|
-
/** Returns the single widget with a matching display value. Throws when none or more than one matches. */
|
|
129
|
-
export declare const getByDisplayValue: BuiltinQueries["getByDisplayValue"];
|
|
130
|
-
/** Waits for and returns every widget with a matching display value, retrying until at least one appears or the timeout elapses. */
|
|
131
|
-
export declare const findAllByDisplayValue: BuiltinQueries["findAllByDisplayValue"];
|
|
132
|
-
/** Waits for and returns the single widget with a matching display value, retrying until it appears or the timeout elapses. Rejects when none or more than one matches. */
|
|
133
|
-
export declare const findByDisplayValue: BuiltinQueries["findByDisplayValue"];
|
|
134
|
-
export {};
|
|
190
|
+
declare function queryAllByDisplayValue(container: Container, value: Matcher, options?: MatcherOptions): Gtk.Widget[];
|
|
191
|
+
export { builtinQueries, queryByRole, getAllByRole, getByRole, findAllByRole, findByRole, queryByLabelText, getAllByLabelText, getByLabelText, findAllByLabelText, findByLabelText, queryByText, getAllByText, getByText, findAllByText, findByText, queryByName, getAllByName, getByName, findAllByName, findByName, queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText, queryByDisplayValue, getAllByDisplayValue, getByDisplayValue, findAllByDisplayValue, findByDisplayValue, getDefaultNormalizer, queryAllByRole, queryAllByLabelText, queryAllByText, queryAllByName, queryAllByPlaceholderText, queryAllByDisplayValue, type BuiltinQueries, };
|
|
135
192
|
//# sourceMappingURL=queries.d.ts.map
|
package/dist/queries.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM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