Skip to content

API Reference / @gtkx/testing / MatcherFunction

Type Alias: MatcherFunction

MatcherFunction = (content, widget) => boolean

Defined in: types.d.ts:7

A custom matcher predicate: given a candidate widget's normalized text content and the widget itself, returns whether it matches.

Parameters

content

string

widget

Gtk.Widget

Returns

boolean

Released under the MPL-2.0 License.