Lines Matching refs:properties

12      * Asserts that an object has all of the same properties

14 * @param {Object} expected The object with all expected properties and values.
56 * Asserts that an object has all properties of a reference object.
57 * @param {Array} properties An array of property names that should be on the object.
64 hasKeys: function (properties, object, message) {
65 YUITest.ObjectAssert.ownsOrInheritsKeys(properties, object, message);
84 * Asserts that all properties exist on an object prototype.
85 * @param {Array} properties An array of property names that should be on the object.
91 inheritsKeys: function (properties, object, message) {
93 for (var i=0; i < properties.length; i++){
94 if (!(propertyName in object && !object.hasOwnProperty(properties[i]))){
95 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object instance."));
116 * Asserts that all properties exist on an object instance (not on its prototype).
117 * @param {Array} properties An array of property names that should be on the object.
123 ownsKeys: function (properties, object, message) {
125 for (var i=0; i < properties.length; i++){
126 if (!object.hasOwnProperty(properties[i])){
127 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object instance."));
133 * Asserts that an object owns no properties.
150 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Object owns " + count + " properties but should own none."));
171 * Asserts that an object has all properties of a reference object.
172 * @param {Array} properties An array of property names that should be on the object.
178 ownsOrInheritsKeys: function (properties, object, message) {
180 for (var i=0; i < properties.length; i++){
181 if (!(properties[i] in object)){
182 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object."));