Removed duplicate Suite and Spec jsdocs
This commit is contained in:
@@ -726,30 +726,11 @@ getJasmineRequireObj().util = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().Spec = function(j$) {
|
getJasmineRequireObj().Spec = function(j$) {
|
||||||
/**
|
|
||||||
* @interface Spec
|
|
||||||
* @see Configuration#specFilter
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
function Spec(attrs) {
|
function Spec(attrs) {
|
||||||
this.expectationFactory = attrs.expectationFactory;
|
this.expectationFactory = attrs.expectationFactory;
|
||||||
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
||||||
this.resultCallback = attrs.resultCallback || function() {};
|
this.resultCallback = attrs.resultCallback || function() {};
|
||||||
/**
|
|
||||||
* The unique ID of this spec.
|
|
||||||
* @name Spec#id
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.id = attrs.id;
|
this.id = attrs.id;
|
||||||
/**
|
|
||||||
* The description passed to the {@link it} that created this spec.
|
|
||||||
* @name Spec#description
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.description = attrs.description || '';
|
this.description = attrs.description || '';
|
||||||
this.queueableFn = attrs.queueableFn;
|
this.queueableFn = attrs.queueableFn;
|
||||||
this.beforeAndAfterFns =
|
this.beforeAndAfterFns =
|
||||||
@@ -1005,13 +986,6 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
return 'passed';
|
return 'passed';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* The full description including all ancestors of this spec.
|
|
||||||
* @name Spec#getFullName
|
|
||||||
* @function
|
|
||||||
* @returns {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
Spec.prototype.getFullName = function() {
|
Spec.prototype.getFullName = function() {
|
||||||
return this.getSpecName(this);
|
return this.getSpecName(this);
|
||||||
};
|
};
|
||||||
@@ -1064,6 +1038,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
/**
|
/**
|
||||||
* @interface Spec
|
* @interface Spec
|
||||||
* @see Configuration#specFilter
|
* @see Configuration#specFilter
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(Spec.prototype, 'metadata', {
|
Object.defineProperty(Spec.prototype, 'metadata', {
|
||||||
get: function() {
|
get: function() {
|
||||||
@@ -1074,6 +1049,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#id
|
* @name Spec#id
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
id: this.id,
|
id: this.id,
|
||||||
|
|
||||||
@@ -1082,6 +1058,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#description
|
* @name Spec#description
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
description: this.description,
|
description: this.description,
|
||||||
|
|
||||||
@@ -1090,6 +1067,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#getFullName
|
* @name Spec#getFullName
|
||||||
* @function
|
* @function
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
getFullName: this.getFullName.bind(this)
|
getFullName: this.getFullName.bind(this)
|
||||||
};
|
};
|
||||||
@@ -9634,29 +9612,10 @@ getJasmineRequireObj().StackTrace = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().Suite = function(j$) {
|
getJasmineRequireObj().Suite = function(j$) {
|
||||||
/**
|
|
||||||
* @interface Suite
|
|
||||||
* @see Env#topSuite
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
function Suite(attrs) {
|
function Suite(attrs) {
|
||||||
this.env = attrs.env;
|
this.env = attrs.env;
|
||||||
/**
|
|
||||||
* The unique ID of this suite.
|
|
||||||
* @name Suite#id
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.id = attrs.id;
|
this.id = attrs.id;
|
||||||
this.parentSuite = attrs.parentSuite;
|
this.parentSuite = attrs.parentSuite;
|
||||||
/**
|
|
||||||
* The description passed to the {@link describe} that created this suite.
|
|
||||||
* @name Suite#description
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.description = attrs.description;
|
this.description = attrs.description;
|
||||||
this.expectationFactory = attrs.expectationFactory;
|
this.expectationFactory = attrs.expectationFactory;
|
||||||
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
||||||
@@ -9670,13 +9629,6 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
this.beforeAllFns = [];
|
this.beforeAllFns = [];
|
||||||
this.afterAllFns = [];
|
this.afterAllFns = [];
|
||||||
this.timer = attrs.timer || new j$.Timer();
|
this.timer = attrs.timer || new j$.Timer();
|
||||||
|
|
||||||
/**
|
|
||||||
* The suite's children.
|
|
||||||
* @name Suite#children
|
|
||||||
* @type {Array.<(Spec|Suite)>}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.children = [];
|
this.children = [];
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
@@ -9695,13 +9647,6 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
return this.asyncExpectationFactory(actual, this);
|
return this.asyncExpectationFactory(actual, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* The full description including all ancestors of this suite.
|
|
||||||
* @name Suite#getFullName
|
|
||||||
* @function
|
|
||||||
* @returns {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
Suite.prototype.getFullName = function() {
|
Suite.prototype.getFullName = function() {
|
||||||
var fullName = [];
|
var fullName = [];
|
||||||
for (
|
for (
|
||||||
@@ -9925,6 +9870,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
/**
|
/**
|
||||||
* @interface Suite
|
* @interface Suite
|
||||||
* @see Env#topSuite
|
* @see Env#topSuite
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
function SuiteMetadata(suite) {
|
function SuiteMetadata(suite) {
|
||||||
this.suite_ = suite;
|
this.suite_ = suite;
|
||||||
@@ -9933,6 +9879,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#id
|
* @name Suite#id
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
this.id = suite.id;
|
this.id = suite.id;
|
||||||
|
|
||||||
@@ -9949,6 +9896,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#description
|
* @name Suite#description
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
this.description = suite.description;
|
this.description = suite.description;
|
||||||
}
|
}
|
||||||
@@ -9958,6 +9906,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#getFullName
|
* @name Suite#getFullName
|
||||||
* @function
|
* @function
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
SuiteMetadata.prototype.getFullName = function() {
|
SuiteMetadata.prototype.getFullName = function() {
|
||||||
return this.suite_.getFullName();
|
return this.suite_.getFullName();
|
||||||
@@ -9967,6 +9916,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* The suite's children.
|
* The suite's children.
|
||||||
* @name Suite#children
|
* @name Suite#children
|
||||||
* @type {Array.<(Spec|Suite)>}
|
* @type {Array.<(Spec|Suite)>}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(SuiteMetadata.prototype, 'children', {
|
Object.defineProperty(SuiteMetadata.prototype, 'children', {
|
||||||
get: function() {
|
get: function() {
|
||||||
|
|||||||
@@ -1,28 +1,9 @@
|
|||||||
getJasmineRequireObj().Spec = function(j$) {
|
getJasmineRequireObj().Spec = function(j$) {
|
||||||
/**
|
|
||||||
* @interface Spec
|
|
||||||
* @see Configuration#specFilter
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
function Spec(attrs) {
|
function Spec(attrs) {
|
||||||
this.expectationFactory = attrs.expectationFactory;
|
this.expectationFactory = attrs.expectationFactory;
|
||||||
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
||||||
this.resultCallback = attrs.resultCallback || function() {};
|
this.resultCallback = attrs.resultCallback || function() {};
|
||||||
/**
|
|
||||||
* The unique ID of this spec.
|
|
||||||
* @name Spec#id
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.id = attrs.id;
|
this.id = attrs.id;
|
||||||
/**
|
|
||||||
* The description passed to the {@link it} that created this spec.
|
|
||||||
* @name Spec#description
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.description = attrs.description || '';
|
this.description = attrs.description || '';
|
||||||
this.queueableFn = attrs.queueableFn;
|
this.queueableFn = attrs.queueableFn;
|
||||||
this.beforeAndAfterFns =
|
this.beforeAndAfterFns =
|
||||||
@@ -278,13 +259,6 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
return 'passed';
|
return 'passed';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* The full description including all ancestors of this spec.
|
|
||||||
* @name Spec#getFullName
|
|
||||||
* @function
|
|
||||||
* @returns {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
Spec.prototype.getFullName = function() {
|
Spec.prototype.getFullName = function() {
|
||||||
return this.getSpecName(this);
|
return this.getSpecName(this);
|
||||||
};
|
};
|
||||||
@@ -337,6 +311,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
/**
|
/**
|
||||||
* @interface Spec
|
* @interface Spec
|
||||||
* @see Configuration#specFilter
|
* @see Configuration#specFilter
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(Spec.prototype, 'metadata', {
|
Object.defineProperty(Spec.prototype, 'metadata', {
|
||||||
get: function() {
|
get: function() {
|
||||||
@@ -347,6 +322,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#id
|
* @name Spec#id
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
id: this.id,
|
id: this.id,
|
||||||
|
|
||||||
@@ -355,6 +331,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#description
|
* @name Spec#description
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
description: this.description,
|
description: this.description,
|
||||||
|
|
||||||
@@ -363,6 +340,7 @@ getJasmineRequireObj().Spec = function(j$) {
|
|||||||
* @name Spec#getFullName
|
* @name Spec#getFullName
|
||||||
* @function
|
* @function
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
getFullName: this.getFullName.bind(this)
|
getFullName: this.getFullName.bind(this)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,27 +1,8 @@
|
|||||||
getJasmineRequireObj().Suite = function(j$) {
|
getJasmineRequireObj().Suite = function(j$) {
|
||||||
/**
|
|
||||||
* @interface Suite
|
|
||||||
* @see Env#topSuite
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
function Suite(attrs) {
|
function Suite(attrs) {
|
||||||
this.env = attrs.env;
|
this.env = attrs.env;
|
||||||
/**
|
|
||||||
* The unique ID of this suite.
|
|
||||||
* @name Suite#id
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.id = attrs.id;
|
this.id = attrs.id;
|
||||||
this.parentSuite = attrs.parentSuite;
|
this.parentSuite = attrs.parentSuite;
|
||||||
/**
|
|
||||||
* The description passed to the {@link describe} that created this suite.
|
|
||||||
* @name Suite#description
|
|
||||||
* @readonly
|
|
||||||
* @type {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.description = attrs.description;
|
this.description = attrs.description;
|
||||||
this.expectationFactory = attrs.expectationFactory;
|
this.expectationFactory = attrs.expectationFactory;
|
||||||
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
this.asyncExpectationFactory = attrs.asyncExpectationFactory;
|
||||||
@@ -35,13 +16,6 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
this.beforeAllFns = [];
|
this.beforeAllFns = [];
|
||||||
this.afterAllFns = [];
|
this.afterAllFns = [];
|
||||||
this.timer = attrs.timer || new j$.Timer();
|
this.timer = attrs.timer || new j$.Timer();
|
||||||
|
|
||||||
/**
|
|
||||||
* The suite's children.
|
|
||||||
* @name Suite#children
|
|
||||||
* @type {Array.<(Spec|Suite)>}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
this.children = [];
|
this.children = [];
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
@@ -60,13 +34,6 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
return this.asyncExpectationFactory(actual, this);
|
return this.asyncExpectationFactory(actual, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* The full description including all ancestors of this suite.
|
|
||||||
* @name Suite#getFullName
|
|
||||||
* @function
|
|
||||||
* @returns {string}
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
Suite.prototype.getFullName = function() {
|
Suite.prototype.getFullName = function() {
|
||||||
var fullName = [];
|
var fullName = [];
|
||||||
for (
|
for (
|
||||||
@@ -290,6 +257,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
/**
|
/**
|
||||||
* @interface Suite
|
* @interface Suite
|
||||||
* @see Env#topSuite
|
* @see Env#topSuite
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
function SuiteMetadata(suite) {
|
function SuiteMetadata(suite) {
|
||||||
this.suite_ = suite;
|
this.suite_ = suite;
|
||||||
@@ -298,6 +266,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#id
|
* @name Suite#id
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
this.id = suite.id;
|
this.id = suite.id;
|
||||||
|
|
||||||
@@ -314,6 +283,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#description
|
* @name Suite#description
|
||||||
* @readonly
|
* @readonly
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
this.description = suite.description;
|
this.description = suite.description;
|
||||||
}
|
}
|
||||||
@@ -323,6 +293,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* @name Suite#getFullName
|
* @name Suite#getFullName
|
||||||
* @function
|
* @function
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
SuiteMetadata.prototype.getFullName = function() {
|
SuiteMetadata.prototype.getFullName = function() {
|
||||||
return this.suite_.getFullName();
|
return this.suite_.getFullName();
|
||||||
@@ -332,6 +303,7 @@ getJasmineRequireObj().Suite = function(j$) {
|
|||||||
* The suite's children.
|
* The suite's children.
|
||||||
* @name Suite#children
|
* @name Suite#children
|
||||||
* @type {Array.<(Spec|Suite)>}
|
* @type {Array.<(Spec|Suite)>}
|
||||||
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
Object.defineProperty(SuiteMetadata.prototype, 'children', {
|
Object.defineProperty(SuiteMetadata.prototype, 'children', {
|
||||||
get: function() {
|
get: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user