Lines Matching refs:message

16      * @param {String} message (Optional) The message to display if the assertion fails.

21 areEqual: function(expected, actual, message) {
29 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Object should have " + expectedKeys.length + " keys but has " + actualKeys.length));
36 throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(message, "Values should be equal for property " + name), expected[name], actual[name]);
46 * @param {String} message (Optional) The message to display if the assertion fails.
51 hasKey: function (propertyName, object, message) {
52 YUITest.ObjectAssert.ownsOrInheritsKey(propertyName, object, message);
59 * @param {String} message (Optional) The message to display if the assertion fails.
64 hasKeys: function (properties, object, message) {
65 YUITest.ObjectAssert.ownsOrInheritsKeys(properties, object, message);
72 * @param {String} message (Optional) The message to display if the assertion fails.
76 inheritsKey: function (propertyName, object, message) {
79 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
87 * @param {String} message (Optional) The message to display if the assertion fails.
91 inheritsKeys: function (properties, object, message) {
95 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object instance."));
104 * @param {String} message (Optional) The message to display if the assertion fails.
108 ownsKey: function (propertyName, object, message) {
111 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
119 * @param {String} message (Optional) The message to display if the assertion fails.
123 ownsKeys: function (properties, object, message) {
127 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object instance."));
135 * @param {String} message (Optional) The message to display if the assertion fails.
139 ownsNoKeys : function (object, message) {
150 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Object owns " + count + " properties but should own none."));
159 * @param {String} message (Optional) The message to display if the assertion fails.
163 ownsOrInheritsKey: function (propertyName, object, message) {
166 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
174 * @param {String} message (Optional) The message to display if the assertion fails.
178 ownsOrInheritsKeys: function (properties, object, message) {
182 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Property '" + properties[i] + "' not found on object."));