Checks if a property has the exact same value.
As of version 1.72, it is available as a declarative matcher with the following syntax: {
propertyStrictEquals: {
name: "string",
value: "any"
}
}
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.
new sap.ui.test.matchers.PropertyStrictEquals(mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
mSettings? | object | optional map/JSON-object with initial settings for the new PropertyStrictEquals |
Method | Description |
---|---|
sap.ui.test.matchers.PropertyStrictEquals.extend |
Creates a new subclass of class sap.ui.test.matchers.PropertyStrictEquals with name
|
sap.ui.test.matchers.PropertyStrictEquals.getMetadata |
Returns a metadata object for class sap.ui.test.matchers.PropertyStrictEquals. |
getName |
Gets current value of property name. The Name of the property that is used for matching. |
getValue |
Gets current value of property value. The value of the property that is used for matching. |
isMatching |
Checks if the control has a property that matches the value |
setName |
Sets a new value for property name. The Name of the property that is used for matching. When called with a value of |
setValue |
Sets a new value for property value. The value of the property that is used for matching. When called with a value of |
Creates a new subclass of class sap.ui.test.matchers.PropertyStrictEquals 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.test.matchers.Matcher.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.PropertyStrictEquals.
Checks if the control has a property that matches the value
Param | Type | DefaultValue | Description |
---|---|---|---|
oControl | sap.ui.core.Control |
the control that is checked by the matcher |
Sets a new value for property name.
The Name of the property that is used for matching.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sName | string |
New value for property |
Sets a new value for property value.
The value of the property that is used for matching.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
oValue | any |
New value for property |