Skip to content

Commit f91121d

Browse files
Dominator008jleyba
authored andcommitted
Update Closure Compiler and Closure Library to v20160208
Removed unnecessary test_module.js and test_module_dep.js. Fixed compile errors. Signed-off-by: Jason Leyba <jmleyba@gmail.com>
1 parent 3263916 commit f91121d

751 files changed

Lines changed: 26866 additions & 21519 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

javascript/remote/ui/screenshotdialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ remote.ui.ScreenshotDialog.prototype.setState = function(state) {
9292
case remote.ui.ScreenshotDialog.State.LOADING:
9393
default:
9494
this.setTitle(remote.ui.ScreenshotDialog.LOADING_TITLE);
95-
this.setContent('');
95+
this.setTextContent('');
9696
break;
9797
}
9898
};
@@ -115,7 +115,7 @@ remote.ui.ScreenshotDialog.prototype.displayScreenshot = function(screenshot) {
115115
var a = dom.createDom(goog.dom.TagName.A, { 'href': url, 'target': '_blank' },
116116
dom.createDom(goog.dom.TagName.IMG, { 'src': url }));
117117

118-
this.setContent('');
118+
this.setTextContent('');
119119
goog.dom.appendChild(this.getContentElement(), a);
120120

121121
this.reposition();

javascript/remote/ui/sessionview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ remote.ui.SessionView = function() {
5050
this.confirmDialog_ = new goog.ui.Dialog(undefined, true);
5151

5252
this.confirmDialog_.setTitle('Delete session?');
53-
this.confirmDialog_.setContent(
53+
this.confirmDialog_.setTextContent(
5454
'Are you sure you want to delete this session?');
5555
goog.events.listen(this.confirmDialog_, goog.ui.Dialog.EventType.SELECT,
5656
this.onConfirm_, false, this);

third_party/closure/bin/README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,14 @@ The [Closure Compiler](https://developers.google.com/closure/compiler/) is a too
2020

2121
Note: The Closure Compiler requires [Java 7 or higher](http://www.java.com/).
2222

23-
### Using [Ant](http://ant.apache.org/)
23+
### Using [Maven](http://maven.apache.org/)
2424

25-
1. Download the [Ant build tool](http://ant.apache.org/bindownload.cgi).
25+
1. Download [Maven](http://maven.apache.org/download.cgi).
2626

27-
2. At the root of the source tree, there is an Ant file named ```build.xml```.
28-
To use it, navigate to the same directory and type the command
27+
2. Run `mvn -DskipTests` (omit the `-DskipTests` if you want to run all the
28+
unit tests too).
2929

30-
```
31-
ant jar
32-
```
33-
34-
This will produce a jar file called ```build/compiler.jar```.
30+
This will produce a jar file called `target/closure-compiler-1.0-SNAPSHOT.jar`.
3531

3632
### Using [Eclipse](http://www.eclipse.org/)
3733

@@ -91,7 +87,7 @@ You can also use minimatch-style globs.
9187
# Recursively include all js files in subdirs
9288
java -jar compiler.jar --js_output_file=out.js 'src/**.js'
9389

94-
# Recursively include all js files in subdirs, exclusing test files.
90+
# Recursively include all js files in subdirs, excluding test files.
9591
# Use single-quotes, so that bash doesn't try to expand the '!'
9692
java -jar compiler.jar --js_output_file=out.js 'src/**.js' '!**_test.js'
9793
```
@@ -118,7 +114,7 @@ will re-order the inputs automatically.
118114
1. Consult the [FAQ](https://github.com/google/closure-compiler/wiki/FAQ) to make sure that the behaviour you would like isn't specifically excluded (such as string inlining).
119115
2. Make sure someone hasn't requested the same thing. See the list of [known issues](https://github.com/google/closure-compiler/issues).
120116
3. Read up on [what type of feature requests are accepted](https://github.com/google/closure-compiler/wiki/FAQ#how-do-i-submit-a-feature-request-for-a-new-type-of-optimization).
121-
4. Submit your reqest as an issue.
117+
4. Submit your request as an issue.
122118

123119
### Submitting patches
124120
1. All contributors must sign a contributor license agreement (CLA).
@@ -245,7 +241,7 @@ options/arguments in your CUI application.</td>
245241

246242
<tr>
247243
<td>Version</td>
248-
<td>18.0</td>
244+
<td>20.0</td>
249245
</tr>
250246

251247
<tr>
@@ -342,7 +338,7 @@ options/arguments in your CUI application.</td>
342338

343339
<tr>
344340
<td>URL</td>
345-
<td>http://code.google.com/p/protobuf/</td>
341+
<td>https://github.com/google/protobuf</td>
346342
</tr>
347343

348344
<tr>
@@ -448,7 +444,7 @@ without make's wrinkles and with the full portability of pure java code.</td>
448444

449445
<tr>
450446
<td>URL</td>
451-
<td>https://code.google.com/p/google-gson/</td>
447+
<td>https://github.com/google/gson</td>
452448
</tr>
453449

454450
<tr>
216 KB
Binary file not shown.

third_party/closure/goog/a11y/aria/announcer.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ goog.a11y.aria.Announcer.prototype.getLiveRegion_ = function(priority) {
113113
liveRegion.style.top = '-1000px';
114114
liveRegion.style.height = '1px';
115115
liveRegion.style.overflow = 'hidden';
116-
goog.a11y.aria.setState(liveRegion, goog.a11y.aria.State.LIVE,
117-
priority);
118-
goog.a11y.aria.setState(liveRegion, goog.a11y.aria.State.ATOMIC,
119-
'true');
116+
goog.a11y.aria.setState(liveRegion, goog.a11y.aria.State.LIVE, priority);
117+
goog.a11y.aria.setState(liveRegion, goog.a11y.aria.State.ATOMIC, 'true');
120118
this.domHelper_.getDocument().body.appendChild(liveRegion);
121119
this.liveRegions_[priority] = liveRegion;
122120
return liveRegion;

third_party/closure/goog/a11y/aria/aria.js

Lines changed: 47 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,12 @@ goog.a11y.aria.ROLE_ATTRIBUTE_ = 'role';
5555
* @private
5656
*/
5757
goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_ = [
58-
goog.dom.TagName.A,
59-
goog.dom.TagName.AREA,
60-
goog.dom.TagName.BUTTON,
61-
goog.dom.TagName.HEAD,
62-
goog.dom.TagName.INPUT,
63-
goog.dom.TagName.LINK,
64-
goog.dom.TagName.MENU,
65-
goog.dom.TagName.META,
66-
goog.dom.TagName.OPTGROUP,
67-
goog.dom.TagName.OPTION,
68-
goog.dom.TagName.PROGRESS,
69-
goog.dom.TagName.STYLE,
70-
goog.dom.TagName.SELECT,
71-
goog.dom.TagName.SOURCE,
72-
goog.dom.TagName.TEXTAREA,
73-
goog.dom.TagName.TITLE,
74-
goog.dom.TagName.TRACK
58+
goog.dom.TagName.A, goog.dom.TagName.AREA, goog.dom.TagName.BUTTON,
59+
goog.dom.TagName.HEAD, goog.dom.TagName.INPUT, goog.dom.TagName.LINK,
60+
goog.dom.TagName.MENU, goog.dom.TagName.META, goog.dom.TagName.OPTGROUP,
61+
goog.dom.TagName.OPTION, goog.dom.TagName.PROGRESS, goog.dom.TagName.STYLE,
62+
goog.dom.TagName.SELECT, goog.dom.TagName.SOURCE, goog.dom.TagName.TEXTAREA,
63+
goog.dom.TagName.TITLE, goog.dom.TagName.TRACK
7564
];
7665

7766

@@ -84,20 +73,13 @@ goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_ = [
8473
* @private @const
8574
*/
8675
goog.a11y.aria.CONTAINER_ROLES_ = [
87-
goog.a11y.aria.Role.COMBOBOX,
88-
goog.a11y.aria.Role.GRID,
89-
goog.a11y.aria.Role.GROUP,
90-
goog.a11y.aria.Role.LISTBOX,
91-
goog.a11y.aria.Role.MENU,
92-
goog.a11y.aria.Role.MENUBAR,
93-
goog.a11y.aria.Role.RADIOGROUP,
94-
goog.a11y.aria.Role.ROW,
95-
goog.a11y.aria.Role.ROWGROUP,
96-
goog.a11y.aria.Role.TAB_LIST,
97-
goog.a11y.aria.Role.TEXTBOX,
98-
goog.a11y.aria.Role.TOOLBAR,
99-
goog.a11y.aria.Role.TREE,
100-
goog.a11y.aria.Role.TREEGRID
76+
goog.a11y.aria.Role.COMBOBOX, goog.a11y.aria.Role.GRID,
77+
goog.a11y.aria.Role.GROUP, goog.a11y.aria.Role.LISTBOX,
78+
goog.a11y.aria.Role.MENU, goog.a11y.aria.Role.MENUBAR,
79+
goog.a11y.aria.Role.RADIOGROUP, goog.a11y.aria.Role.ROW,
80+
goog.a11y.aria.Role.ROWGROUP, goog.a11y.aria.Role.TAB_LIST,
81+
goog.a11y.aria.Role.TEXTBOX, goog.a11y.aria.Role.TOOLBAR,
82+
goog.a11y.aria.Role.TREE, goog.a11y.aria.Role.TREEGRID
10183
];
10284

10385

@@ -119,8 +101,9 @@ goog.a11y.aria.setRole = function(element, roleName) {
119101
goog.a11y.aria.removeRole(element);
120102
} else {
121103
if (goog.asserts.ENABLE_ASSERTS) {
122-
goog.asserts.assert(goog.object.containsValue(
123-
goog.a11y.aria.Role, roleName), 'No such ARIA role ' + roleName);
104+
goog.asserts.assert(
105+
goog.object.containsValue(goog.a11y.aria.Role, roleName),
106+
'No such ARIA role ' + roleName);
124107
}
125108
element.setAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_, roleName);
126109
}
@@ -228,8 +211,9 @@ goog.a11y.aria.getState = function(element, stateName) {
228211
// getState(...) and setState(...) methods.
229212

230213
var attr =
231-
/** @type {string|number|boolean} */ (element.getAttribute(
232-
goog.a11y.aria.getAriaAttributeName_(stateName)));
214+
/** @type {string|number|boolean} */ (
215+
element.getAttribute(
216+
goog.a11y.aria.getAriaAttributeName_(stateName)));
233217
var isNullOrUndefined = attr == null || attr == undefined;
234218
return isNullOrUndefined ? '' : String(attr);
235219
};
@@ -243,8 +227,8 @@ goog.a11y.aria.getState = function(element, stateName) {
243227
* @return {?Element} DOM node of the activedescendant, if found.
244228
*/
245229
goog.a11y.aria.getActiveDescendant = function(element) {
246-
var id = goog.a11y.aria.getState(
247-
element, goog.a11y.aria.State.ACTIVEDESCENDANT);
230+
var id =
231+
goog.a11y.aria.getState(element, goog.a11y.aria.State.ACTIVEDESCENDANT);
248232
return goog.dom.getOwnerDocument(element).getElementById(id);
249233
};
250234

@@ -295,20 +279,20 @@ goog.a11y.aria.setLabel = function(element, label) {
295279
* the roles.
296280
*/
297281
goog.a11y.aria.assertRoleIsSetInternalUtil = function(element, allowedRoles) {
298-
if (goog.array.contains(goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_,
299-
element.tagName)) {
282+
if (goog.array.contains(
283+
goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_, element.tagName)) {
300284
return;
301285
}
302286
var elementRole = /** @type {string}*/ (goog.a11y.aria.getRole(element));
303-
goog.asserts.assert(elementRole != null,
304-
'The element ARIA role cannot be null.');
287+
goog.asserts.assert(
288+
elementRole != null, 'The element ARIA role cannot be null.');
305289

306-
goog.asserts.assert(goog.array.contains(allowedRoles, elementRole),
290+
goog.asserts.assert(
291+
goog.array.contains(allowedRoles, elementRole),
307292
'Non existing or incorrect role set for element.' +
308-
'The role set is "' + elementRole +
309-
'". The role should be any of "' + allowedRoles +
310-
'". Check the ARIA specification for more details ' +
311-
'http://www.w3.org/TR/wai-aria/roles.');
293+
'The role set is "' + elementRole + '". The role should be any of "' +
294+
allowedRoles + '". Check the ARIA specification for more details ' +
295+
'http://www.w3.org/TR/wai-aria/roles.');
312296
};
313297

314298

@@ -321,11 +305,12 @@ goog.a11y.aria.assertRoleIsSetInternalUtil = function(element, allowedRoles) {
321305
*/
322306
goog.a11y.aria.getStateBoolean = function(element, stateName) {
323307
var attr =
324-
/** @type {string|boolean} */ (element.getAttribute(
325-
goog.a11y.aria.getAriaAttributeName_(stateName)));
308+
/** @type {string|boolean} */ (
309+
element.getAttribute(
310+
goog.a11y.aria.getAriaAttributeName_(stateName)));
326311
goog.asserts.assert(
327312
goog.isBoolean(attr) || attr == null || attr == 'true' ||
328-
attr == 'false');
313+
attr == 'false');
329314
if (attr == null) {
330315
return attr;
331316
}
@@ -342,10 +327,11 @@ goog.a11y.aria.getStateBoolean = function(element, stateName) {
342327
*/
343328
goog.a11y.aria.getStateNumber = function(element, stateName) {
344329
var attr =
345-
/** @type {string|number} */ (element.getAttribute(
346-
goog.a11y.aria.getAriaAttributeName_(stateName)));
347-
goog.asserts.assert((attr == null || !isNaN(Number(attr))) &&
348-
!goog.isBoolean(attr));
330+
/** @type {string|number} */ (
331+
element.getAttribute(
332+
goog.a11y.aria.getAriaAttributeName_(stateName)));
333+
goog.asserts.assert(
334+
(attr == null || !isNaN(Number(attr))) && !goog.isBoolean(attr));
349335
return attr == null ? null : Number(attr);
350336
};
351337

@@ -358,9 +344,10 @@ goog.a11y.aria.getStateNumber = function(element, stateName) {
358344
* the state value is empty string or not set.
359345
*/
360346
goog.a11y.aria.getStateString = function(element, stateName) {
361-
var attr = element.getAttribute(
362-
goog.a11y.aria.getAriaAttributeName_(stateName));
363-
goog.asserts.assert((attr == null || goog.isString(attr)) &&
347+
var attr =
348+
element.getAttribute(goog.a11y.aria.getAriaAttributeName_(stateName));
349+
goog.asserts.assert(
350+
(attr == null || goog.isString(attr)) &&
364351
(attr == '' || isNaN(Number(attr))) && attr != 'true' && attr != 'false');
365352
return (attr == null || attr == '') ? null : attr;
366353
};
@@ -376,8 +363,8 @@ goog.a11y.aria.getStateString = function(element, stateName) {
376363
* value of the state attribute.
377364
*/
378365
goog.a11y.aria.getStringArrayStateInternalUtil = function(element, stateName) {
379-
var attrValue = element.getAttribute(
380-
goog.a11y.aria.getAriaAttributeName_(stateName));
366+
var attrValue =
367+
element.getAttribute(goog.a11y.aria.getAriaAttributeName_(stateName));
381368
return goog.a11y.aria.splitStringOnWhitespace_(attrValue);
382369
};
383370

@@ -430,8 +417,8 @@ goog.a11y.aria.splitStringOnWhitespace_ = function(stringValue) {
430417
goog.a11y.aria.getAriaAttributeName_ = function(ariaName) {
431418
if (goog.asserts.ENABLE_ASSERTS) {
432419
goog.asserts.assert(ariaName, 'ARIA attribute cannot be empty.');
433-
goog.asserts.assert(goog.object.containsValue(
434-
goog.a11y.aria.State, ariaName),
420+
goog.asserts.assert(
421+
goog.object.containsValue(goog.a11y.aria.State, ariaName),
435422
'No such ARIA attribute ' + ariaName);
436423
}
437424
return goog.a11y.aria.ARIA_PREFIX_ + ariaName;

third_party/closure/goog/a11y/aria/datatables.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,17 @@ goog.a11y.aria.DefaultStateValueMap_;
4646
goog.a11y.aria.datatables.getDefaultValuesMap = function() {
4747
if (!goog.a11y.aria.DefaultStateValueMap_) {
4848
goog.a11y.aria.DefaultStateValueMap_ = goog.object.create(
49-
goog.a11y.aria.State.ATOMIC, false,
50-
goog.a11y.aria.State.AUTOCOMPLETE, 'none',
51-
goog.a11y.aria.State.DROPEFFECT, 'none',
52-
goog.a11y.aria.State.HASPOPUP, false,
53-
goog.a11y.aria.State.LIVE, 'off',
49+
goog.a11y.aria.State.ATOMIC, false, goog.a11y.aria.State.AUTOCOMPLETE,
50+
'none', goog.a11y.aria.State.DROPEFFECT, 'none',
51+
goog.a11y.aria.State.HASPOPUP, false, goog.a11y.aria.State.LIVE, 'off',
5452
goog.a11y.aria.State.MULTILINE, false,
5553
goog.a11y.aria.State.MULTISELECTABLE, false,
5654
goog.a11y.aria.State.ORIENTATION, 'vertical',
57-
goog.a11y.aria.State.READONLY, false,
58-
goog.a11y.aria.State.RELEVANT, 'additions text',
59-
goog.a11y.aria.State.REQUIRED, false,
60-
goog.a11y.aria.State.SORT, 'none',
61-
goog.a11y.aria.State.BUSY, false,
62-
goog.a11y.aria.State.DISABLED, false,
63-
goog.a11y.aria.State.HIDDEN, false,
64-
goog.a11y.aria.State.INVALID, 'false');
55+
goog.a11y.aria.State.READONLY, false, goog.a11y.aria.State.RELEVANT,
56+
'additions text', goog.a11y.aria.State.REQUIRED, false,
57+
goog.a11y.aria.State.SORT, 'none', goog.a11y.aria.State.BUSY, false,
58+
goog.a11y.aria.State.DISABLED, false, goog.a11y.aria.State.HIDDEN,
59+
false, goog.a11y.aria.State.INVALID, 'false');
6560
}
6661

6762
return goog.a11y.aria.DefaultStateValueMap_;

0 commit comments

Comments
 (0)