mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
The second half of the first phase of the testing framework upgrade. This finishes moving the exisintg tests to jasmine and the new test directory structure
54 lines
689 B
JavaScript
54 lines
689 B
JavaScript
/**
|
|
* @constructor
|
|
*/
|
|
function Foo() {
|
|
/** First property */
|
|
this.prop1 = true;
|
|
}
|
|
|
|
/**
|
|
* Second property
|
|
* @type {String}
|
|
*/
|
|
Foo.prototype.prop2 = "parent prop2";
|
|
|
|
/**
|
|
* First parent method.
|
|
*/
|
|
Foo.prototype.method1 = function() {};
|
|
|
|
/**
|
|
* Second parent method.
|
|
*/
|
|
Foo.prototype.method2 = function() {};
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends Foo
|
|
*/
|
|
function Bar() {
|
|
/** Thrid prop **/
|
|
this.prop3 = true;
|
|
}
|
|
|
|
/**
|
|
* Second child method.
|
|
*/
|
|
Bar.prototype.method2 = function() {};
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {Bar}
|
|
*/
|
|
function Baz() {
|
|
/** Override prop1 */
|
|
this.prop1 = "new";
|
|
}
|
|
|
|
/**
|
|
* Third grandchild method.
|
|
*/
|
|
Baz.prototype.method3 = function() {};
|
|
|