TestSuite.js revision 3a9d9da71c85987c55fec9e42ed39aa9c9aab15c
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 {Y.Test.Suite||Y.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 () {
}
};