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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/scripts/jsdoc-validator/tests/golden.dat ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @constructor 2 * @constructor
3 */ 3 */
4 Base = function() {} 4 Base = function() {}
5 5
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @extends {Base} 8 * @extends {Base}
9 */ 9 */
10 DerivedNoProto = function() {} 10 DerivedNoProto = function() {}
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 /** 81 /**
82 * @extends {Base} 82 * @extends {Base}
83 */ 83 */
84 GoodDerived = function() { 84 GoodDerived = function() {
85 Base.call(this); 85 Base.call(this);
86 } 86 }
87 87
88 GoodDerived.prototype = { 88 GoodDerived.prototype = {
89 __proto__: Base.prototype 89 __proto__: Base.prototype
90 } 90 }
91
92 /**
93 * @constructor
94 * @template T
95 */
96 var Set = function() {}
97
98 Set.prototype = {
99 add: function(item) {},
100 remove: function(item) {},
101 /** @return {boolean} */
102 contains: function(item) { return true; }
103 }
104
105 /**
106 * @constructor
107 * @extends {Set.<T>}
108 * @template T
109 */
110 var GoodSetSubclass = function()
111 {
112 Set.call(this);
113 }
114
115 GoodSetSubclass.prototype = {
116 __proto__: Set.prototype
117 }
118
119 /**
120 * @constructor
121 * @extends {Set.<T>}
122 * @template T
123 */
124 var BadSetSubclass = function()
125 {
126 }
127
128 BadSetSubclass.prototype = {
129 }
OLDNEW
« 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