TestSuite.js revision 6eae5adc42f886ebacac1f714be3f0c9e4b205c1
Y.namespace("Test");
/**
* A test suite that can contain a collection of TestCase and TestSuite objects.
* @param {String|Object} data The name of the test suite or an object containing
* a name property as well as setUp and tearDown methods.
* @namespace Test
* @class Suite
* @constructor
*/
/**
* The name of the test suite.
* @type String
* @property name
*/
this.name = "";
/**
* Array of test suites and
* @property items
* @type Array
* @private
*/
this.items = [];
//initialize the properties
}
//double-check name
if (this.name === ""){
}
};
/**
* Adds a test suite or test case to the test suite.
* @param {Test.Suite|Test.Case} testObject The test suite or test case to add.
* @return {Void}
* @method add
*/
}
return this;
},
//-------------------------------------------------------------------------
// Stub Methods
//-------------------------------------------------------------------------
/**
* Function to run before each test is executed.
* @return {Void}
* @method setUp
*/
setUp : function () {
},
/**
* Function to run after each test is executed.
* @return {Void}
* @method tearDown
*/
tearDown: function () {
}
};