Test.ObjectAssert Class
+ + + + +The ObjectAssert object provides functions to test JavaScript objects +for a variety of cases.
+Item Index
+ + +Methods
+ +-
+
+
- + areEqual + + + static + + + deprecated + + + +
- + hasKey + + + static + + + deprecated + + + +
- + hasKeys + + + static + + + deprecated + + + +
- + inheritsKey + + + static + + + + +
- + inheritsKeys + + + static + + + + +
- + ownsKey + + + static + + + + +
- + ownsKeys + + + static + + + + +
- + ownsNoKeys + + + static + + + + +
- + ownsOrInheritsKey + + + static + + + + +
- + ownsOrInheritsKeys + + + static + + + + +
Methods
+ + +areEqual
+
+
+ -
+
+
-
+
+
expected+ +
+
+ -
+
+
actual+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object has all of the same properties +and property values as the other.
+hasKey
+
+
+ -
+
+
-
+
+
propertyName+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object has a property with the given name.
+hasKeys
+
+
+ -
+
+
-
+
+
properties+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object has all properties of a reference object.
+inheritsKey
+
+
+ -
+
+
-
+
+
propertyName+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that a property with the given name exists on an object's prototype.
+inheritsKeys
+
+
+ -
+
+
-
+
+
properties+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that all properties exist on an object prototype.
+ownsKey
+
+
+ -
+
+
-
+
+
propertyName+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that a property with the given name exists on an object instance (not on its prototype).
+ownsKeys
+
+
+ -
+
+
-
+
+
properties+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that all properties exist on an object instance (not on its prototype).
+ownsNoKeys
+
+
+ -
+
+
-
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object owns no properties.
+ownsOrInheritsKey
+
+
+ -
+
+
-
+
+
propertyName+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object has a property with the given name.
+ownsOrInheritsKeys
+
+
+ -
+
+
-
+
+
properties+ +
+
+ -
+
+
object+ +
+
+ -
+
+
message+ +
+
+
Asserts that an object has all properties of a reference object.
+