google-closure-compiler 20180910.1.0 → 20181008.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compiler.jar CHANGED
Binary file
@@ -1298,3 +1298,15 @@ md.$panel.MdPanelAnimation.prototype.closeTo = function(closeTo) {};
1298
1298
  * @return {!md.$panel.MdPanelAnimation}
1299
1299
  */
1300
1300
  md.$panel.MdPanelAnimation.prototype.withAnimation = function(cssClass) {};
1301
+
1302
+ /******************************************************************************
1303
+ * DatePickerCtrl
1304
+ *****************************************************************************/
1305
+
1306
+ /** @interface */
1307
+ md.DatePickerCtrl = function() {};
1308
+
1309
+ /**
1310
+ * @param {Date=} opt_date
1311
+ */
1312
+ md.DatePickerCtrl.prototype.updateErrorState = function(opt_date) {};
@@ -26,242 +26,249 @@
26
26
  * @see http://chaijs.com/
27
27
  */
28
28
 
29
+ /** @const */
30
+ var chai = {};
31
+
32
+ /**
33
+ * @constructor
34
+ * @param {*} obj
35
+ * @param {string=} msg
36
+ * @param {!Function=} ssfi
37
+ * @param {boolean=} lockSsfi
38
+ */
39
+ chai.Assertion = function(obj, msg, ssfi, lockSsfi) {};
40
+
29
41
  // Below are the externs for the BDD expect API: http://chaijs.com/api/bdd/
30
42
 
31
43
  /**
32
44
  * @param {*} subject
33
45
  * @param {string=} opt_description
34
- * @return {!ExpectChain}
46
+ * @return {!chai.Assertion}
35
47
  */
36
48
  var expect = function(subject, opt_description) {};
37
49
 
38
- /**
39
- * Represents the chainable return type of `expect()`.
40
- * @constructor
41
- */
42
- var ExpectChain = function() {};
43
-
44
-
45
- /** @type {!ExpectChain} */ ExpectChain.prototype.to;
46
- /** @type {!ExpectChain} */ ExpectChain.prototype.be;
47
- /** @type {!ExpectChain} */ ExpectChain.prototype.been;
48
- /** @type {!ExpectChain} */ ExpectChain.prototype.is;
49
- /** @type {!ExpectChain} */ ExpectChain.prototype.that;
50
- /** @type {!ExpectChain} */ ExpectChain.prototype.which;
51
- /** @type {!ExpectChain} */ ExpectChain.prototype.and;
52
- /** @type {!ExpectChain} */ ExpectChain.prototype.has;
53
- /** @type {!ExpectChain} */ ExpectChain.prototype.have;
54
- /** @type {!ExpectChain} */ ExpectChain.prototype.with;
55
- /** @type {!ExpectChain} */ ExpectChain.prototype.at;
56
- /** @type {!ExpectChain} */ ExpectChain.prototype.of;
57
- /** @type {!ExpectChain} */ ExpectChain.prototype.same;
58
- /** @type {!ExpectChain} */ ExpectChain.prototype.not;
59
- /** @type {!ExpectChain} */ ExpectChain.prototype.deep;
60
- /** @type {!ExpectChain} */ ExpectChain.prototype.any;
61
- /** @type {!ExpectChain} */ ExpectChain.prototype.all;
62
- /** @type {!ExpectChain} */ ExpectChain.prototype.length;
63
- /** @type {!ExpectChain} */ ExpectChain.prototype.itself;
64
- /** @type {!ExpectChain} */ ExpectChain.prototype.ok;
65
- /** @type {!ExpectChain} */ ExpectChain.prototype.true;
66
- /** @type {!ExpectChain} */ ExpectChain.prototype.false;
67
- /** @type {!ExpectChain} */ ExpectChain.prototype.null;
68
- /** @type {!ExpectChain} */ ExpectChain.prototype.undefined;
69
- /** @type {!ExpectChain} */ ExpectChain.prototype.NaN;
70
- /** @type {!ExpectChain} */ ExpectChain.prototype.exist;
71
- /** @type {!ExpectChain} */ ExpectChain.prototype.empty;
72
- /** @type {!ExpectChain} */ ExpectChain.prototype.arguments;
73
- /** @type {!ExpectChain} */ ExpectChain.prototype.extensible;
74
- /** @type {!ExpectChain} */ ExpectChain.prototype.sealed;
75
- /** @type {!ExpectChain} */ ExpectChain.prototype.frozen;
50
+
51
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.to;
52
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.be;
53
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.been;
54
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.is;
55
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.that;
56
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.which;
57
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.and;
58
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.has;
59
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.have;
60
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.with;
61
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.at;
62
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.of;
63
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.same;
64
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.not;
65
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.deep;
66
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.any;
67
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.all;
68
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.length;
69
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.itself;
70
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.ok;
71
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.true;
72
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.false;
73
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.null;
74
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.undefined;
75
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.NaN;
76
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.exist;
77
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.empty;
78
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.arguments;
79
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.extensible;
80
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.sealed;
81
+ /** @type {!chai.Assertion} */ chai.Assertion.prototype.frozen;
76
82
 
77
83
 
78
84
  /**
79
85
  * @param {string} type
80
86
  * @param {string=} opt_message
81
- * @return {!ExpectChain}
87
+ * @return {!chai.Assertion}
82
88
  */
83
- ExpectChain.prototype.a = function(type, opt_message) {};
89
+ chai.Assertion.prototype.a = function(type, opt_message) {};
84
90
 
85
91
  /**
86
92
  * @param {string} type
87
93
  * @param {string=} opt_message
88
94
  */
89
- ExpectChain.prototype.an = function(type, opt_message) {}
95
+ chai.Assertion.prototype.an = function(type, opt_message) {}
90
96
 
91
- /**
92
- * @param {*} value
93
- * @param {string=} opt_message
94
- */
95
- ExpectChain.prototype.include = function(value, opt_message) {};
97
+ /**
98
+ * @param {*} value
99
+ * @param {string=} opt_message
100
+ */
101
+ chai.Assertion.prototype.include = function(
102
+ value, opt_message) {};
96
103
 
97
104
  /**
98
105
  * @param {*} value
99
106
  * @param {string=} opt_message
100
107
  */
101
- ExpectChain.prototype.includes = function(value, opt_message) {};
108
+ chai.Assertion.prototype.includes = function(value, opt_message) {};
102
109
 
103
110
  /**
104
111
  * @param {*} value
105
112
  * @param {string=} opt_message
106
113
  */
107
- ExpectChain.prototype.contain = function(value, opt_message) {};
114
+ chai.Assertion.prototype.contain = function(value, opt_message) {};
108
115
 
109
116
  /**
110
117
  * @param {*} value
111
118
  * @param {string=} opt_message
112
119
  */
113
- ExpectChain.prototype.contains = function(value, opt_message) {};
120
+ chai.Assertion.prototype.contains = function(value, opt_message) {};
114
121
 
115
122
  /**
116
123
  * @param {*} value
117
124
  * @param {string=} opt_message
118
125
  */
119
- ExpectChain.prototype.equal = function(value, opt_message) {};
126
+ chai.Assertion.prototype.equal = function(value, opt_message) {};
120
127
 
121
128
  /**
122
129
  * @param {*} value
123
130
  * @param {string=} opt_message
124
131
  */
125
- ExpectChain.prototype.eql = function(value, opt_message) {};
132
+ chai.Assertion.prototype.eql = function(value, opt_message) {};
126
133
 
127
134
  /**
128
135
  * @param {number} value
129
136
  * @param {string=} opt_message
130
137
  */
131
- ExpectChain.prototype.above = function(value, opt_message) {};
138
+ chai.Assertion.prototype.above = function(value, opt_message) {};
132
139
 
133
140
  /**
134
141
  * @param {number} value
135
142
  * @param {string=} opt_message
136
143
  */
137
- ExpectChain.prototype.least = function(value, opt_message) {};
144
+ chai.Assertion.prototype.least = function(value, opt_message) {};
138
145
 
139
146
  /**
140
147
  * @param {number} value
141
148
  * @param {string=} opt_message
142
149
  */
143
- ExpectChain.prototype.below = function(value, opt_message) {};
150
+ chai.Assertion.prototype.below = function(value, opt_message) {};
144
151
 
145
152
  /**
146
153
  * @param {number} value
147
154
  * @param {string=} opt_message
148
155
  */
149
- ExpectChain.prototype.most = function(value, opt_message) {};
156
+ chai.Assertion.prototype.most = function(value, opt_message) {};
150
157
 
151
158
  /**
152
159
  * @param {number} start
153
160
  * @param {number} finish
154
161
  * @param {string=} opt_message
155
162
  */
156
- ExpectChain.prototype.within = function(start, finish, opt_message) {};
163
+ chai.Assertion.prototype.within = function(start, finish, opt_message) {};
157
164
 
158
165
  /**
159
166
  * @param {function(new: Object)} constructor
160
167
  * @param {string=} opt_message
161
168
  */
162
- ExpectChain.prototype.instanceof = function(constructor, opt_message) {};
169
+ chai.Assertion.prototype.instanceof = function(constructor, opt_message) {};
163
170
 
164
171
  /**
165
172
  * @param {function(new: Object)} constructor
166
173
  * @param {string=} opt_message
167
174
  */
168
- ExpectChain.prototype.an.instanceof = function(constructor, opt_message) {};
175
+ chai.Assertion.prototype.an.instanceof = function(constructor, opt_message) {};
169
176
 
170
177
  /**
171
178
  * @param {string} name
172
179
  * @param {*=} opt_value
173
180
  * @param {string=} opt_message
174
181
  */
175
- ExpectChain.prototype.property = function(name, opt_value, opt_message) {};
182
+ chai.Assertion.prototype.property = function(name, opt_value, opt_message) {};
176
183
 
177
184
  /**
178
185
  * @param {string} name
179
186
  * @param {string=} opt_message
180
187
  */
181
- ExpectChain.prototype.ownProperty = function(name, opt_message) {};
188
+ chai.Assertion.prototype.ownProperty = function(name, opt_message) {};
182
189
 
183
190
  /**
184
191
  * @param {string} name
185
192
  * @param {!Object=} opt_descriptor
186
193
  * @param {string=} opt_message
187
194
  */
188
- ExpectChain.prototype.ownPropertyDescriptor =
189
- function(name, opt_descriptor, opt_message) {};
195
+ chai.Assertion.prototype.ownPropertyDescriptor = function(
196
+ name, opt_descriptor, opt_message) {};
190
197
 
191
198
  /**
192
199
  * @param {number} value
193
200
  * @param {string=} opt_message
194
201
  */
195
- ExpectChain.prototype.lengthOf = function(value, opt_message) {};
202
+ chai.Assertion.prototype.lengthOf = function(value, opt_message) {};
196
203
 
197
204
  /**
198
205
  * @param {!RegExp} re
199
206
  * @param {string=} opt_message
200
207
  */
201
- ExpectChain.prototype.match = function(re, opt_message) {};
208
+ chai.Assertion.prototype.match = function(re, opt_message) {};
202
209
 
203
210
  /**
204
211
  * @param {string} value
205
212
  * @param {string=} opt_message
206
213
  */
207
- ExpectChain.prototype.string = function(value, opt_message) {};
214
+ chai.Assertion.prototype.string = function(value, opt_message) {};
208
215
 
209
216
  /**
210
217
  * @param {*} value
211
218
  * @param {string=} opt_message
212
219
  */
213
- ExpectChain.prototype.keys = function(value, opt_message) {};
220
+ chai.Assertion.prototype.keys = function(value, opt_message) {};
214
221
 
215
222
  /**
216
223
  * Note: incomplete definition because it is tricky.
217
224
  * @param {...*} var_args
218
225
  */
219
- ExpectChain.prototype.throw = function(var_args) {};
226
+ chai.Assertion.prototype.throw = function(var_args) {};
220
227
 
221
228
  /**
222
229
  * @param {string} method
223
230
  * @param {string=} opt_message
224
231
  */
225
- ExpectChain.prototype.respondTo = function(method, opt_message) {};
232
+ chai.Assertion.prototype.respondTo = function(method, opt_message) {};
226
233
 
227
234
  /**
228
235
  * @param {function(*): boolean} matcher
229
236
  * @param {string=} opt_message
230
237
  */
231
- ExpectChain.prototype.satisfy = function(matcher, opt_message) {};
238
+ chai.Assertion.prototype.satisfy = function(matcher, opt_message) {};
232
239
 
233
240
  /**
234
241
  * @param {!Array<*>} value
235
242
  * @param {string=} opt_message
236
243
  */
237
- ExpectChain.prototype.members = function(value, opt_message) {};
244
+ chai.Assertion.prototype.members = function(value, opt_message) {};
238
245
 
239
246
  /**
240
247
  * @param {!Array<*>} value
241
248
  * @param {string=} opt_message
242
249
  */
243
- ExpectChain.prototype.oneOf = function(value, opt_message) {};
250
+ chai.Assertion.prototype.oneOf = function(value, opt_message) {};
244
251
 
245
252
  /**
246
253
  * @param {*} value
247
254
  * @param {string} name
248
255
  * @param {string=} opt_message
249
256
  */
250
- ExpectChain.prototype.change = function(value, name, opt_message) {};
257
+ chai.Assertion.prototype.change = function(value, name, opt_message) {};
251
258
 
252
259
  /**
253
260
  * @param {*} value
254
261
  * @param {string} name
255
262
  * @param {string=} opt_message
256
263
  */
257
- ExpectChain.prototype.increase = function(value, name, opt_message) {};
264
+ chai.Assertion.prototype.increase = function(value, name, opt_message) {};
258
265
 
259
266
  /**
260
267
  * @param {*} value
261
268
  * @param {string} name
262
269
  * @param {string=} opt_message
263
270
  */
264
- ExpectChain.prototype.decrease = function(value, name, opt_message) {};
271
+ chai.Assertion.prototype.decrease = function(value, name, opt_message) {};
265
272
 
266
273
  // Below are the externs for the TDD expect API: http://chaijs.com/api/assert/
267
274
 
@@ -385,6 +392,18 @@ assert.isNotNull = function(value, message) {}
385
392
  */
386
393
  assert.isNull = function(value, opt_message) {};
387
394
 
395
+ /**
396
+ * @param {*} value
397
+ * @param {string=} opt_message
398
+ */
399
+ assert.exists = function(value, opt_message) {};
400
+
401
+ /**
402
+ * @param {*} value
403
+ * @param {string=} opt_message
404
+ */
405
+ assert.notExists = function(value, opt_message) {};
406
+
388
407
  /**
389
408
  * @param {*} object
390
409
  * @param {function(new: Object)} constructor
@@ -456,3 +475,32 @@ assert.sameMembers = function(set1, set2, opt_message) {};
456
475
  * @param {string=} opt_message
457
476
  */
458
477
  assert.sameDeepMembers = function(set1, set2, opt_message) {};
478
+
479
+ // Below are the externs for the APIs to build custom assertions:
480
+ // http://www.chaijs.com/api/plugins/
481
+
482
+ /**
483
+ * @param {string} name
484
+ * @param {!Function} getter
485
+ */
486
+ chai.Assertion.addMethod = function(name, getter) {};
487
+
488
+ /**
489
+ * @param {string} name
490
+ * @param {function()} getter
491
+ */
492
+ chai.Assertion.addProperty = function(name, getter) {};
493
+
494
+ /** @type {*} */
495
+ chai.Assertion.prototype._obj;
496
+
497
+ /**
498
+ * @param {boolean} expr
499
+ * @param {string} msg
500
+ * @param {string} negateMsg
501
+ * @param {*} expected
502
+ * @param {*=} actual
503
+ * @param {boolean=} showDiff
504
+ */
505
+ chai.Assertion.prototype.assert = function(
506
+ expr, msg, negateMsg, expected, actual, showDiff) {}