Searched refs:message (Results 1 - 25 of 69) sorted by relevance

123

/yui3/src/test/js/
H A DAssertionError.js6 * @param {String} message The message to display when the error occurs.
11 YUITest.AssertionError = function (message){
14 * Error message. Must be duplicated to ensure browser receives it.
16 * @property message
18 this.message = message;
40 return this.message;
H A DShouldError.js5 * @param {String} message The message to display when the error occurs.
11 YUITest.ShouldError = function (message){
14 YUITest.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
H A DShouldFail.js5 * @param {String} message The message to display when the error occurs.
11 YUITest.ShouldFail = function (message){
14 YUITest.AssertionError.call(this, message || "This test should fail but didn't.");
H A DAssert.js25 * Formats a message so that it can contain the original assertion message
26 * in addition to the custom message.
27 * @param {String} customMessage The message passed in by the developer.
28 * @param {String} defaultMessage The message created by the error by default.
29 * @return {String} The final error message, containing either or both.
36 return customMessage.replace("{message}", defaultMessage);
78 * @param {String} message (Optional) The message to display with the failure.
82 fail : function (message) {
[all...]
H A DUnexpectedValue.js7 * @param {String} message The message to display when the error occurs.
14 YUITest.UnexpectedValue = function (message, unexpected){
17 YUITest.AssertionError.call(this, message);
42 * Returns a fully formatted error for an assertion failure. This message
48 return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
H A DObjectAssert.js16 * @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 (Optiona
[all...]
H A DComparisonFailure.js6 * @param {String} message The message to display when the error occurs.
14 YUITest.ComparisonFailure = function (message, expected, actual){
17 YUITest.AssertionError.call(this, message);
49 * Returns a fully formatted error for an assertion failure. This message
55 return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")" +
H A DArrayAssert.js66 * @param {String} message (Optional) The message to display if the assertion
72 message) {
77 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Value " +
90 * @param {String} message (Optional) The message to display if the assertion
96 message) {
102 YUITest.Assert.fail(YUITest.Assert._formatMessage(message, "Value " +
115 * @param {String} message (Optional) The message t
[all...]
H A DDateAssert.js17 * @param {String} message (Optional) The message to display if the assertion fails.
21 datesAreEqual : function (expected, actual, message){
42 throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(message, msg), expected, actual);
53 * @param {String} message (Optional) The message to display if the assertion fails.
57 timesAreEqual : function (expected, actual, message){
78 throw new YUITest.ComparisonFailure(YUITest.Assert._formatMessage(message, msg), expected, actual);
H A DTestCase.js90 * @param {String} message The message to display if the assertion fails.
92 assert : function (condition, message){
95 throw new YUITest.AssertionError(YUITest.Assert._formatMessage(message, "Assertion failed."));
102 * @param {String} message (Optional) The message to display with the failure.
104 fail: function (message) {
105 YUITest.Assert.fail(message);
H A DYTestWrapAfter.js25 * @param {String} message The message to display if the assertion fails.
29 Y.assert = function(condition, message){
32 throw new Y.Assert.Error(Y.Assert._formatMessage(message, "Assertion failed."));
39 * @param {String} message (Optional) The message to display with the failure.
48 var message = "";
53 message = "Testing began at " + (new Date()).toString() + ".";
58 message = Y.substitute("Testing completed at " +
67 message
[all...]
H A DUnexpectedError.js16 YUITest.AssertionError.call(this, "Unexpected error: " + cause.message);
H A DTestFormat.js60 xml += " result=\"" + results.result + "\" message=\"" + xmlEscape(results.message) + "\">";
100 xml += "<failure message=\"" + xmlEscape(results.message) + "\"><![CDATA[" + results.message + "]]></failure>";
181 text = "not " + text + " - " + results.message;
/yui3/src/handlebars/js/
H A Dyui-handlebars-compiler-after.js15 Logs a debugging message. Note that messages will only be logged when the
19 @param {String} level Log level for this message. Supported levels are "debug",
21 @param {String} message Message to log.
24 Handlebars.logger.log = function (level, message) {
25 Y.log(message, levels[level] || 'error', 'Handlebars');
H A Dyui-handlebars-utils.js8 Handlebars.Exception = function (message) {
18 this.message = error.message;
/yui3/src/test/scripts/
H A DYTestWrapAfter.js25 * @param {String} message The message to display if the assertion fails.
29 Y.assert = function(condition, message){
32 throw new Y.Assert.Error(Y.Assert._formatMessage(message, "Assertion failed."));
39 * @param {String} message (Optional) The message to display with the failure.
48 var message = "";
53 message = "Testing began at " + (new Date()).toString() + ".";
58 message = Y.substitute("Testing completed at " +
67 message
[all...]
/yui3/build/test/
H A Dtest-debug.js316 * @param {String} message The message to display if the assertion fails.
318 assert : function (condition, message){
321 throw new YUITest.AssertionError(YUITest.Assert._formatMessage(message, "Assertion failed."));
328 * @param {String} message (Optional) The message to display with the failure.
330 fail: function (message) {
331 YUITest.Assert.fail(message);
431 xml += " result=\"" + results.result + "\" message=\"" + xmlEscape(results.message)
[all...]
/yui3/src/common/tests/assets/
H A Dtest-console.js8 '<pre class="{entry_content_class}">{message}</pre>' +
13 var m = e.message,
17 /\s(?:case|suite)\s|yuitests\d+|began/.test(m.message)) {
/yui3/src/test/tests/
H A Dformat-tests.js50 message: "Test passed.",
58 message: "Test passed.",
66 message: "Test ignored.",
74 message: "Test failed.",
82 message: "Test failed.",
103 "\"test1\":{\"result\":\"pass\",\"message\":\"Test passed.\",\"type\":\"test\",\"name\":\"test1\"}," +
104 "\"test2\":{\"result\":\"pass\",\"message\":\"Test passed.\",\"type\":\"test\",\"name\":\"test2\"}," +
105 "\"test3\":{\"result\":\"ignore\",\"message\":\"Test ignored.\",\"type\":\"test\",\"name\":\"test3\"}," +
106 "\"test4\":{\"result\":\"fail\",\"message\":\"Test failed.\",\"type\":\"test\",\"name\":\"test4\"}," +
107 "\"test5\":{\"result\":\"fail\",\"message\"
[all...]
/yui3/build/datatable-message/
H A Ddatatable-message-debug.js1 YUI.add('datatable-message', function(Y) {
4 Adds support for a message container to appear in the table. This can be used
9 @submodule datatable-message
17 Adds support for a message container to appear in the table. This can be used
33 prevent the message Node from being created and `showMessage` from doing
59 Hides the message node.
68 this.getClassName('message', 'visible'));
74 Display the message node and set its content to `message`. If there is a
75 localized `strings` entry for the value of `message`, tha
[all...]
/yui3/src/test-console/js/
H A Dtest-console.js57 var msg = e.message;
60 && /\s(?:case|suite)\s|yuitests\d+|began/.test(msg.message)) {
73 '<div class="{entry_content_class}">{message}</div>' +
/yui3/build/test-console/
H A Dtest-console-debug.js59 var msg = e.message;
62 && /\s(?:case|suite)\s|yuitests\d+|began/.test(msg.message)) {
75 '<div class="{entry_content_class}">{message}</div>' +
/yui3/src/datatable/js/
H A Dmessage.js2 Adds support for a message container to appear in the table. This can be used
7 @submodule datatable-message
15 Adds support for a message container to appear in the table. This can be used
31 prevent the message Node from being created and `showMessage` from doing
57 Hides the message node.
66 this.getClassName('message', 'visible'));
72 Display the message node and set its content to `message`. If there is a
73 localized `strings` entry for the value of `message`, that string will be
77 @param {String} message Th
[all...]
/yui3/src/datatype/js/
H A Ddatatype-xml-parse.js37 Y.log(ee.message + " (Could not parse data to type XML Document)", "warn", "datatype-xml");
/yui3/build/datatype-xml-parse/
H A Ddatatype-xml-parse-debug.js39 Y.log(ee.message + " (Could not parse data to type XML Document)", "warn", "datatype-xml");

Completed in 478 milliseconds

123