Skip to content

Commit

Permalink
Add inline documentation for TestSpecification.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Feb 26, 2013
1 parent 33f8e2c commit 32dd26c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/hub/test-specification.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ TestSpecification.empty = function () {
});
};

/**
* Set and normalize the mountpoint for use in creating URLs
* for Test objects.
*
* @method setMountpoint
* @param {String} mountpoint
*/
TestSpecification.prototype.setMountpoint = function (mountpoint) {
if (!mountpoint) {
mountpoint = "/";
Expand All @@ -55,7 +62,6 @@ TestSpecification.prototype.setMountpoint = function (mountpoint) {
this.mountpoint = mountpoint;
};


/**
* Get the timeout in milliseconds.
*
Expand All @@ -66,6 +72,12 @@ TestSpecification.prototype.getTimeoutMilliseconds = function () {
return this.timeout * 1000;
};

/**
* Create a Tests object from this specification.
*
* @method createTests
* @return {Tests} Created Tests.
*/
TestSpecification.prototype.createTests = function () {
return new Tests(this);
};
Expand Down

0 comments on commit 32dd26c

Please sign in to comment.