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

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

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

Powered by Google App Engine
This is Rietveld 408576698