Skip to content

Commit

Permalink
Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-cent…
Browse files Browse the repository at this point in the history
…ral (automatic fixes). r=mossop

Differential Revision: https://phabricator.services.mozilla.com/D8389
  • Loading branch information
Standard8 committed Oct 19, 2018
1 parent 814e459 commit 65db0ad
Show file tree
Hide file tree
Showing 1,998 changed files with 9,765 additions and 9,765 deletions.
4 changes: 2 additions & 2 deletions accessible/jsat/AccessFu.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ var AccessFu = {
bounds = bounds.scale(1 / devicePixelRatio, 1 / devicePixelRatio);
bounds = bounds.translate(-mozInnerScreenX, -mozInnerScreenY);
return bounds.expandToIntegers();
}
},
};

var Input = {
Expand Down Expand Up @@ -315,6 +315,6 @@ var Input = {
winUtils.sendWheelEvent(p.x, p.y,
horizontal ? page : 0, horizontal ? 0 : page, 0,
win.WheelEvent.DOM_DELTA_PAGE, 0, 0, 0, 0);
}
},
};
AccessFu.Input = Input;
6 changes: 3 additions & 3 deletions accessible/jsat/ContentControl.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ this.ContentControl.prototype = {
moveMethod: aOptions.moveMethod,
moveToFocused: aOptions.moveToFocused,
noOpIfOnScreen: true,
}
},
}, null, true);
};

Expand All @@ -496,6 +496,6 @@ this.ContentControl.prototype = {
},

QueryInterface: ChromeUtils.generateQI([Ci.nsISupportsWeakReference,
Ci.nsIMessageListener
])
Ci.nsIMessageListener,
]),
};
4 changes: 2 additions & 2 deletions accessible/jsat/EventManager.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ this.EventManager.prototype = {
}
},

QueryInterface: ChromeUtils.generateQI([Ci.nsISupportsWeakReference, Ci.nsIObserver])
QueryInterface: ChromeUtils.generateQI([Ci.nsISupportsWeakReference, Ci.nsIObserver]),
};

const AccessibilityEventObserver = {
Expand Down Expand Up @@ -283,5 +283,5 @@ const AccessibilityEventObserver = {
} finally {
return;
}
}
},
};
8 changes: 4 additions & 4 deletions accessible/jsat/Traversal.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BaseTraversalRule.prototype = {
return Filters.IGNORE;
},

QueryInterface: ChromeUtils.generateQI([Ci.nsIAccessibleTraversalRule])
QueryInterface: ChromeUtils.generateQI([Ci.nsIAccessibleTraversalRule]),
};

var gSimpleTraversalRoles =
Expand Down Expand Up @@ -221,7 +221,7 @@ var TraversalRules = { // jshint ignore:line
"main",
"navigation",
"search",
"region"
"region",
]);

return matchedRole ? Filters.MATCH : Filters.IGNORE;
Expand Down Expand Up @@ -346,7 +346,7 @@ var TraversalRules = { // jshint ignore:line
return Filters.IGNORE;
}
return Filters.MATCH;
}
},
};

var TraversalHelper = {
Expand Down Expand Up @@ -393,6 +393,6 @@ var TraversalHelper = {
}
return aVirtualCursor[aMethod](rule);

}
},

};
22 changes: 11 additions & 11 deletions accessible/jsat/Utils.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var Utils = { // jshint ignore:line
"{3c2e2abc-06d4-11e1-ac3b-374f68613e61}": "b2g",
"{d1bfe7d9-c01e-4237-998b-7b5f960a4314}": "graphene",
"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}": "browser",
"{aa3c5121-dab2-40e2-81ca-7ea25febc110}": "mobile/android"
"{aa3c5121-dab2-40e2-81ca-7ea25febc110}": "mobile/android",
},

get AccService() {
Expand Down Expand Up @@ -129,7 +129,7 @@ var Utils = { // jshint ignore:line
} finally {
return str;
}
}
},
};
return this.stringBundle;
},
Expand Down Expand Up @@ -287,7 +287,7 @@ var Utils = { // jshint ignore:line
"contentinfo",
"main",
"navigation",
"search"
"search",
]);
},

Expand All @@ -304,7 +304,7 @@ var Utils = { // jshint ignore:line
"root-index",
"subscript",
"superscript",
"underscript"
"underscript",
]);
},

Expand Down Expand Up @@ -341,7 +341,7 @@ var Utils = { // jshint ignore:line

return parent.role === Roles.LISTITEM && parent.childCount > 1 &&
aStaticText.indexInParent === 0;
}
},
};

/**
Expand All @@ -366,7 +366,7 @@ State.prototype = {
statesArray[i] = stateStrings.item(i);
}
return "[" + statesArray.join(", ") + "]";
}
},
};

var Logger = { // jshint ignore:line
Expand Down Expand Up @@ -513,7 +513,7 @@ var Logger = { // jshint ignore:line
this._dumpTreeInternal(aLogLevel, aAccessible.getChildAt(i),
aIndent + 1);
}
}
},
};

/**
Expand Down Expand Up @@ -702,7 +702,7 @@ PivotContext.prototype = {
} else if (aAccessible.actionCount > 0) {
hints.push({
string: Utils.AccService.getStringRole(
aAccessible.role).replace(/\s/g, "") + "-hint"
aAccessible.role).replace(/\s/g, "") + "-hint",
});
}
});
Expand Down Expand Up @@ -741,7 +741,7 @@ PivotContext.prototype = {
Roles.CELL,
Roles.COLUMNHEADER,
Roles.ROWHEADER,
Roles.MATHML_CELL
Roles.MATHML_CELL,
].includes(aAccessible.role)) {
return null;
}
Expand Down Expand Up @@ -829,7 +829,7 @@ PivotContext.prototype = {
} catch (x) {
return true;
}
}
},
};

function PrefCache(aName, aCallback, aRunCallbackNow) { // jshint ignore:line
Expand Down Expand Up @@ -885,5 +885,5 @@ PrefCache.prototype = {
},

QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver,
Ci.nsISupportsWeakReference])
Ci.nsISupportsWeakReference]),
};
2 changes: 1 addition & 1 deletion accessible/tests/mochitest/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@ var gActionDescrMap =
collapse: "Collapse",
expand: "Expand",
activate: "Activate",
cycle: "Cycle"
cycle: "Cycle",
};
14 changes: 7 additions & 7 deletions accessible/tests/mochitest/actions/test_anchors.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,27 @@
actionIndex: 0,
events: CLICK_EVENTS,
eventSeq: [
new scrollingChecker(getAccessible("bottom1"))
]
new scrollingChecker(getAccessible("bottom1")),
],
},
{ // jump again (test for bug 437607)
ID: "anchor1",
actionName: "jump",
actionIndex: 0,
events: CLICK_EVENTS,
eventSeq: [
new scrollingChecker(getAccessible("bottom1"))
]
new scrollingChecker(getAccessible("bottom1")),
],
},
{
ID: "anchor2",
actionName: "jump",
actionIndex: 0,
events: CLICK_EVENTS,
eventSeq: [
new scrollingChecker(getAccessible("bottom2"))
]
}
new scrollingChecker(getAccessible("bottom2")),
],
},
];

testActions(actionsArray);
Expand Down
44 changes: 22 additions & 22 deletions accessible/tests/mochitest/actions/test_aria.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,108 +22,108 @@
{
ID: "clickable",
actionName: "click",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "button",
actionName: "press",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "checkbox_unchecked",
actionName: "check",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "checkbox_checked",
actionName: "uncheck",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "checkbox_mixed",
actionName: "cycle",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "combobox_collapsed",
actionName: "open",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "combobox_expanded",
actionName: "close",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "link",
actionName: "jump",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "menuitem",
actionName: "click",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "menuitemcheckbox",
actionName: "click",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "menuitemradio",
actionName: "click",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "option",
actionName: "select",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "radio",
actionName: "select",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "switch_unchecked",
actionName: "check",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "switch_checked",
actionName: "uncheck",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "tab",
actionName: "switch",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "textbox",
actionName: "activate",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "treeitem",
actionName: "activate",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "sortable",
actionName: "sort",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "expandable",
actionName: "expand",
events: CLICK_EVENTS
events: CLICK_EVENTS,
},
{
ID: "collapseable",
actionName: "collapse",
events: CLICK_EVENTS
}
events: CLICK_EVENTS,
},
];
testActions(actionsArray);
}
Expand Down
Loading

0 comments on commit 65db0ad

Please sign in to comment.