| Index: Source/devtools/scripts/jsdoc-validator/tests/proto.js
|
| diff --git a/Source/devtools/scripts/jsdoc-validator/tests/proto.js b/Source/devtools/scripts/jsdoc-validator/tests/proto.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f1abf0db5476f8ac9fa10bfc9889f64b481b1fae
|
| --- /dev/null
|
| +++ b/Source/devtools/scripts/jsdoc-validator/tests/proto.js
|
| @@ -0,0 +1,56 @@
|
| +/**
|
| + * @constructor
|
| + */
|
| +Base = function() {}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @extends {Base}
|
| + */
|
| +DerivedNoProto = function() {}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @extends {Base}
|
| + */
|
| +DerivedBadProto = function() {}
|
| +
|
| +DerivedBadProto.prototype = {
|
| + __proto__: Base
|
| +}
|
| +
|
| +/**
|
| + * @interface
|
| + */
|
| +InterfaceWithProto = function() {}
|
| +
|
| +InterfaceWithProto.prototype = {
|
| + __proto__: Base.prototype
|
| +}
|
| +
|
| +/**
|
| + * @constructor
|
| + */
|
| +ProtoNoExtends = function() {}
|
| +
|
| +ProtoNoExtends.prototype = {
|
| + __proto__: Base.prototype
|
| +}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @extends {Base}
|
| + */
|
| +ProtoNotSameAsExtends = function() {}
|
| +
|
| +ProtoNotSameAsExtends.prototype = {
|
| + __proto__: Object.prototype
|
| +}
|
| +
|
| +/**
|
| + * @constructor
|
| + * @extends {Base}
|
| + */
|
| +ProtoNotObjectLiteral = function() {}
|
| +
|
| +ProtoNotObjectLiteral.prototype = Object;
|
|
|