Matchers for Opa5 - needs to implement an isMatching function that returns a boolean and will get a control instance as parameter
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
This class does not have its own settings, but all settings applicable to the base type sap.ui.base.ManagedObject can be used.
new sap.ui.test.matchers.Matcher()
Method | Description |
---|---|
sap.ui.test.matchers.Matcher.extend |
Creates a new subclass of class sap.ui.test.matchers.Matcher with name
|
sap.ui.test.matchers.Matcher.getMetadata |
Returns a metadata object for class sap.ui.test.matchers.Matcher. |
isMatching |
Checks if the matcher is matching - will get an instance of sap.ui.core.Control as parameter. Should be overwritten by subclasses |
Creates a new subclass of class sap.ui.test.matchers.Matcher with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.ManagedObject.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.test.matchers.Matcher.
Checks if the matcher is matching - will get an instance of sap.ui.core.Control as parameter.
Should be overwritten by subclasses
Param | Type | DefaultValue | Description |
---|---|---|---|
oControl | sap.ui.core.Control |
the control that is checked by the matcher |