Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: Source/devtools/scripts/jsdoc-validator/tests/proto.js

Issue 137553005: DevTools: [JsDocValidator] Refactor JsDoc annotation checkers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments from sergeyv Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/devtools/scripts/jsdoc-validator/tests/golden.dat ('k') | Source/devtools/scripts/jsdoc-validator/tests/return.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698