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

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/jsdoc-validator/tests/golden.dat

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
(Empty)
1 /tests/document.js:1: ERROR - Access to "document" property of global object is disallowed
2 document.bar();
3 ^
4
5 /tests/document.js:2: ERROR - Access to "document" property of global object is disallowed
6 window.document.bar();
7 ^
8
9 /tests/document.js:5: ERROR - Access to "document" property of global object is disallowed
10 document();
11 ^
12
13 /tests/document.js:6: ERROR - Access to "document" property of global object is disallowed
14 var x = window.document;
15 ^
16
17 /tests/document.js:24: ERROR - Access to "document" property of global object is disallowed
18 document.bar();
19 ^
20
21 /tests/document.js:25: ERROR - Access to "document" property of global object is disallowed
22 document();
23 ^
24
25 /tests/document.js:26: ERROR - Access to "document" property of global object is disallowed
26 var inner = document + bar;
27 ^
28
29 /tests/document.js:47: ERROR - Access to "document" property of global object is disallowed
30 document;
31 ^
32
33 /tests/document.js:48: ERROR - Access to "document" property of global object is disallowed
34 window.document;
35 ^
36
37 /tests/document.js:53: ERROR - Access to "document" property of global object is disallowed
38 var z = document.document;
39 ^
40
41 /tests/document.js:54: ERROR - Access to "document" property of global object is disallowed
42 var bar = window + window.document;
43 ^
44
45 /tests/document.js:56: ERROR - Access to "document" property of global object is disallowed
46 self.document = bar;
47 ^
48
49 /tests/document.js:57: ERROR - Access to "addEventListener" property of global o bject is disallowed
50 self.addEventListener();
51 ^
52
53 /tests/document.js:58: ERROR - Access to "removeEventListener" property of globa l object is disallowed
54 self.removeEventListener();
55 ^
56
57 /tests/document.js:59: ERROR - Access to "requestAnimationFrame" property of glo bal object is disallowed
58 self.requestAnimationFrame();
59 ^
60
61 /tests/document.js:60: ERROR - Access to "cancelAnimationFrame" property of glob al object is disallowed
62 window.cancelAnimationFrame();
63 ^
64
65 /tests/document.js:61: ERROR - Access to "getSelection" property of global objec t is disallowed
66 getSelection();
67 ^
68
69 /tests/function.js:1: ERROR - @return annotation is required for API functions t hat return value
70 function badFuncNoAnnotation() {
71 ^
72
73 /tests/function.js:8: ERROR - @return annotation found, yet function does not re turn value
74 function badFuncAnnotatedButNoReturn() // ERROR - no @return annotation.
75 ^
76
77 /tests/function.js:15: ERROR - @return annotation found, yet function does not r eturn value
78 function badFuncAnnotatedButNoReturnValue() // ERROR - no returned value.
79 ^
80
81 /tests/function.js:29: ERROR - invalid return type annotation found - should be "@return {<type>}"
82 * @returns {number}
83 ^
84
85 /tests/function.js:37: ERROR - invalid return type annotation found - should be "@return {<type>}"
86 * @return number
87 ^
88
89 /tests/function.js:45: ERROR - Invalid @param annotation found - should be "@par am {<type>} paramName"
90 * @param number foo
91 ^
92
93 /tests/function.js:46: ERROR - Invalid @param annotation found - should be "@par am {<type>} paramName"
94 * @param bar
95 ^
96
97 /tests/function.js:48: ERROR - @return annotation is required for API functions that return value
98 function badParamAnnotationsFunc(foo, bar) // ERROR - @param's should be well-fo rmed
99 ^
100
101 /tests/function.js:55: ERROR - invalid return type annotation found - please rem ove, as function does not return value
102 * @returns {number}
103 ^
104
105 /tests/function.js:63: ERROR - invalid return type annotation found - please rem ove, as function does not return value
106 * @returns {number}
107 ^
108
109 /tests/function.js:80: ERROR - @return annotation is required for API functions that return value
110 badApiMethodNoAnnotation: function() // ERROR - public method.
111 ^
112
113 /tests/function.js:97: ERROR - @this annotation is required for functions refere ncing 'this'
114 /**
115 ^
116
117 /tests/function.js:126: ERROR - @return annotation found, yet function does not return value
118 badMethodDoesNotReturnValue: function() // ERROR - does not return value.
119 ^
120
121 /tests/function.js:134: ERROR - @return annotation found, yet function does not return value
122 badMethodDoesNotReturn: function() // ERROR - does not return.
123 ^
124
125 /tests/function.js:140: ERROR - invalid return type annotation found - should be "@return {<type>}"
126 * @returns {number}
127 ^
128
129 /tests/function.js:148: ERROR - invalid return type annotation found - please re move, as function does not return value
130 * @returns {number}
131 ^
132
133 /tests/function.js:156: ERROR - invalid return type annotation found - please re move, as function does not return value
134 * @returns {number}
135 ^
136
137 /tests/function.js:176: ERROR - @return annotation is required for API functions that return value
138 badApiMethodNoAnnotation: function() // ERROR - public method.
139 ^
140
141 /tests/function.js:197: ERROR - @return annotation found, yet function does not return value
142 badMethodDoesNotReturnValue: function() // ERROR - does not return value.
143 ^
144
145 /tests/function.js:205: ERROR - @return annotation found, yet function does not return value
146 badMethodDoesNotReturn: function() // ERROR - does not return.
147 ^
148
149 /tests/function.js:211: ERROR - invalid return type annotation found - should be "@return {<type>}"
150 * @returns {number}
151 ^
152
153 /tests/function.js:219: ERROR - invalid return type annotation found - please re move, as function does not return value
154 * @returns {number}
155 ^
156
157 /tests/function.js:227: ERROR - invalid return type annotation found - please re move, as function does not return value
158 * @returns {number}
159 ^
160
161 /tests/function.js:247: ERROR - invalid return type annotation found - should be "@return {<type>}"
162 * @returns {number}
163 ^
164
165 /tests/function.js:268: ERROR - @return annotation is required for API functions that return value
166 badApiMethodNoAnnotation: function() // ERROR - public method.
167 ^
168
169 /tests/function.js:289: ERROR - @return annotation found, yet function does not return value
170 badMethodDoesNotReturnValue: function() // ERROR - does not return value.
171 ^
172
173 /tests/function.js:297: ERROR - @return annotation found, yet function does not return value
174 badMethodDoesNotReturn: function() // ERROR - does not return.
175 ^
176
177 /tests/function.js:303: ERROR - invalid return type annotation found - should be "@return {<type>}"
178 * @returns {number}
179 ^
180
181 /tests/function.js:311: ERROR - invalid return type annotation found - should be "@return {<type>}"
182 * @returns number
183 ^
184
185 /tests/function.js:319: ERROR - invalid return type annotation found - please re move, as function does not return value
186 * @returns {number}
187 ^
188
189 /tests/function.js:327: ERROR - invalid return type annotation found - please re move, as function does not return value
190 * @returns {number}
191 ^
192
193 /tests/function.js:335: ERROR - Invalid @param annotation found - should be "@pa ram {<type>} paramName"
194 * @param number foo
195 ^
196
197 /tests/function.js:336: ERROR - Invalid @param annotation found - should be "@pa ram {<type>} paramName"
198 * @param bar
199 ^
200
201 /tests/function.js:338: ERROR - @return annotation is required for API functions that return value
202 badMethodParamAnnotations: function(foo, bar) // ERROR - @param's should be well-formed
203 ^
204
205 /tests/function.js:357: ERROR - No @param JSDoc tag found for parameters: [b]
206 /**
207 ^
208
209 /tests/function.js:363: ERROR - No @param JSDoc tag found for parameters: [b,c]
210 /**
211 ^
212
213 /tests/proto.js:8: ERROR - No __proto__ assigned for type DerivedNoProto having @extends
214 * @extends {Base}
215 ^
216
217 /tests/proto.js:10: ERROR - Type DerivedNoProto extends Base but does not proper ly invoke its constructor
218 DerivedNoProto = function() {}
219 ^
220
221 /tests/proto.js:16: ERROR - Type DerivedBadProto extends Base but does not prope rly invoke its constructor
222 DerivedBadProto = function() {}
223 ^
224
225 /tests/proto.js:19: ERROR - __proto__ value is not a prototype
226 __proto__: Base
227 ^
228
229 /tests/proto.js:28: ERROR - __proto__ defined for interface InterfaceWithProto
230 __proto__: Base.prototype
231 ^
232
233 /tests/proto.js:37: ERROR - No @extends annotation for ProtoNoExtends extending Base
234 __proto__: Base.prototype
235 ^
236
237 /tests/proto.js:44: ERROR - Type ProtoNotSameAsExtends extends Base but does not properly invoke its constructor
238 ProtoNotSameAsExtends = function() {}
239 ^
240
241 /tests/proto.js:47: ERROR - Supertype does not match Base declared in @extends f or ProtoNotSameAsExtends (line 42)
242 __proto__: Object.prototype
243 ^
244
245 /tests/proto.js:52: ERROR - No __proto__ assigned for type ProtoNotObjectLiteral having @extends
246 * @extends {Base}
247 ^
248
249 /tests/proto.js:54: ERROR - Type ProtoNotObjectLiteral extends Base but does not properly invoke its constructor
250 ProtoNotObjectLiteral = function() {}
251 ^
252
253 /tests/proto.js:56: ERROR - @extends found for type ProtoNotObjectLiteral but it s prototype is not an object containing __proto__
254 ProtoNotObjectLiteral.prototype = Object;
255 ^
256
257 /tests/proto.js:62: ERROR - Type DerivedNoSuperCall extends Base but does not pr operly invoke its constructor
258 DerivedNoSuperCall = function() {
259 ^
260
261 /tests/proto.js:73: ERROR - Type DerivedBadSuperCall extends Base but does not p roperly invoke its constructor
262 DerivedBadSuperCall = function() {
263 ^
264
265 /tests/proto.js:121: ERROR - No __proto__ assigned for type BadSetSubclass havin g @extends
266 * @extends {Set.<T>}
267 ^
268
269 /tests/proto.js:124: ERROR - Type BadSetSubclass extends Set but does not proper ly invoke its constructor
270 var BadSetSubclass = function()
271 ^
272
273 /tests/proto.js:135: ERROR - No __proto__ assigned for type NS.BadSubClass havin g @extends
274 * @extends {Base}
275 ^
276
277 /tests/proto.js:137: ERROR - Type NS.BadSubClass extends Base but does not prope rly invoke its constructor
278 NS.BadSubClass = function() {}
279 ^
280
281 /tests/this.js:19: ERROR - @this annotation is required for functions referencin g 'this'
282 function badInnerCallback() {
283 ^
284
285 /tests/this.js:24: ERROR - @this annotation is required for functions referencin g 'this'
286 function badCallbackInCtor() {
287 ^
288
289 /tests/this.js:54: ERROR - @this annotation is required for functions referencin g 'this'
290 function badCallbackInMethod() {
291 ^
292
293 /tests/this.js:73: ERROR - @this annotation is required for functions referencin g 'this'
294 function badInnerCallback() {
295 ^
296
297 /tests/this.js:78: ERROR - @this annotation is required for functions referencin g 'this'
298 function badCallbackInCtor() {
299 ^
300
301 /tests/this.js:98: ERROR - @this annotation is required for functions referencin g 'this'
302 function badCallbackInMethod() {
303 ^
304
305 /tests/this.js:121: ERROR - @this annotation is required for functions referenci ng 'this'
306 function badInnerCallback() {
307 ^
308
309 /tests/this.js:126: ERROR - @this annotation is required for functions referenci ng 'this'
310 function badCallbackInCtor() {
311 ^
312
313 /tests/this.js:146: ERROR - @this annotation is required for functions referenci ng 'this'
314 function badCallbackInMethod() {
315 ^
316
317 /tests/this.js:153: ERROR - @this annotation found for function not referencing 'this'
318 function callbackNotReferencingThis() {
319 ^
320
321 /tests/this.js:191: ERROR - Member function can only be bound to 'this' as the r eceiver
322 var badMemberBinding1 = this.memberTwo.bind(null); // ERROR - Member not bound to |this| receiver.
323 ^
324
325 /tests/this.js:192: ERROR - Member function can only be bound to 'this' as the r eceiver
326 var badMemberBinding2 = this.memberTwo.bind(bar); // ERROR - Member not bound to |this| receiver.
327 ^
328
329 /tests/this.js:217: ERROR - Receiver not specified for a function referencing 't his'
330 callbackWithThis(); // ERROR - No receiver.
331 ^
332
333 /tests/this.js:218: ERROR - Receiver not specified for a function referencing 't his'
334 callbackWithThis.call(); // ERROR - No receiver.
335 ^
336
337 /tests/this.js:219: ERROR - Receiver not specified for a function referencing 't his'
338 callbackWithThis.call(null); // ERROR - No receiver.
339 ^
340
341 /tests/this.js:220: ERROR - Receiver not specified for a function referencing 't his'
342 callbackWithThis.apply(); // ERROR - No receiver.
343 ^
344
345 /tests/this.js:221: ERROR - Receiver not specified for a function referencing 't his'
346 callbackWithThis.apply(null); // ERROR - No receiver.
347 ^
348
349 /tests/this.js:222: ERROR - Receiver specified for a function not referencing 't his'
350 callbackNoThis.call(this); // ERROR - Function has no @this annotation.
351 ^
352
353 /tests/this.js:223: ERROR - Receiver specified for a function not referencing 't his'
354 callbackNoThis.call(foo); // ERROR - Function has no @this annotation.
355 ^
356
357 /tests/this.js:224: ERROR - Receiver specified for a function not referencing 't his'
358 callbackNoThis.apply(this); // ERROR - Function has no @this annotation.
359 ^
360
361 /tests/this.js:225: ERROR - Receiver specified for a function not referencing 't his'
362 callbackNoThis.bind(this); // ERROR - Function has no @this annotation.
363 ^
364
365 /tests/this.js:227: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotatio n on function declaration.
366 this.memberTwo(callbackWithThis); // ERROR - Used as argument with no bo und receiver.
367 ^
368
369 /tests/this.js:228: ERROR - Receiver not specified for a function referencing 't his'
370 this.memberTwo(callbackWithThis.bind(null, 2)); // ERROR - Used as argum ent with no bound receiver (null means "no receiver").
371 ^
372
373 /tests/this.js:229: ERROR - Receiver specified for a function not referencing 't his'
374 this.memberTwo(callbackNoThis.bind(this)); // ERROR - Bound to a receive r but has no @this annotation.
375 ^
376
377 /tests/this.js:230: ERROR - Receiver specified for a function not referencing 't his'
378 this.memberTwo(callbackNoThis.bind(foo)); // ERROR - Bound to a receiver but has no @this annotation.
379 ^
380
381 /tests/this.js:237: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotatio n on function declaration.
382 array.forEach(callbackWithThis); // ERROR - No receiver.
383 ^
384
385 /tests/this.js:238: ERROR - Function not referencing 'this' used as argument wit h a receiver. This check can be suppressed using @suppressReceiverCheck annotati on on function declaration.
386 array.forEach(callbackNoThis, this); // ERROR - Receiver for callback wi th no @this annotation.
387 ^
388
389 /tests/this.js:247: ERROR - Function not referencing 'this' used as argument wit h a receiver. This check can be suppressed using @suppressReceiverCheck annotati on on function declaration.
390 element.addEventListener("click", callbackNoThis, this); // ERROR.
391 ^
392
393 /tests/this.js:253: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotatio n on function declaration.
394 element.addEventListener("click", callbackWithThis, true); // ERROR.
395 ^
396
397 /tests/this.js:254: ERROR - Function referencing 'this' used as argument without a receiver. This check can be suppressed using @suppressReceiverCheck annotatio n on function declaration.
398 element.addEventListener("click", callbackWithThis, false); // ERROR.
399 ^
400
401 /tests/this.js:268: ERROR - @this annotation is required for functions referenci ng 'this'
402 function callbackReferencingThisNotAnnotated()
403 ^
404
405 /tests/this.js:277: ERROR - @this annotation found for function not referencing 'this'
406 function callbackNotReferencingThisAnnotated()
407 ^
408
409 Total errors: 102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698