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

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

Issue 218993012: DevTools: [JsDocValidator] Handle types declared as top-level vars (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move case to keep the order consistent between methods Created 6 years, 9 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
« no previous file with comments | « Source/devtools/scripts/jsdoc-validator/tests/golden.dat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index fae190d447c071cb12aa2f414ca1b42b8fd0b1ae..59c2b8ce14d285f41f9c4af3a407076126ab65b7 100644
--- a/Source/devtools/scripts/jsdoc-validator/tests/proto.js
+++ b/Source/devtools/scripts/jsdoc-validator/tests/proto.js
@@ -88,3 +88,42 @@ GoodDerived = function() {
GoodDerived.prototype = {
__proto__: Base.prototype
}
+
+/**
+ * @constructor
+ * @template T
+ */
+var Set = function() {}
+
+Set.prototype = {
+ add: function(item) {},
+ remove: function(item) {},
+ /** @return {boolean} */
+ contains: function(item) { return true; }
+}
+
+/**
+ * @constructor
+ * @extends {Set.<T>}
+ * @template T
+ */
+var GoodSetSubclass = function()
+{
+ Set.call(this);
+}
+
+GoodSetSubclass.prototype = {
+ __proto__: Set.prototype
+}
+
+/**
+ * @constructor
+ * @extends {Set.<T>}
+ * @template T
+ */
+var BadSetSubclass = function()
+{
+}
+
+BadSetSubclass.prototype = {
+}
« no previous file with comments | « Source/devtools/scripts/jsdoc-validator/tests/golden.dat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698