Bug 1561435 - Fix linting errors for accessible/, r=standard8

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36408

--HG--
extra : source : 683c8b5040211bba7eabe7c3a5b4d80550bdc03e
extra : intermediate-source : 27745a284b464e970ff19ee684cb3c0374ba7754
This commit is contained in:
Victor Porof 2019-06-28 19:38:45 +02:00
Родитель 058dce8bba
Коммит 6117c06951
3 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -352,6 +352,7 @@ function getContainerAccessible(aAccOrElmOrID) {
return null;
}
// eslint-disable-next-line no-empty
while ((node = node.parentNode) && !isAccessible(node)) {}
return node ? getAccessible(node) : null;
}

Просмотреть файл

@ -98,6 +98,7 @@ function testRelation(aIdentifier, aRelType, aRelatedIdentifiers) {
// Check if all obtained targets are given related accessibles.
for (let relatedAcc of actualTargets.enumerate(Ci.nsIAccessible)) {
let idx;
// eslint-disable-next-line no-empty
for (idx = 0; idx < targets.length && relatedAcc != targets[idx]; idx++) {}
if (idx == targets.length) {

Просмотреть файл

@ -192,11 +192,13 @@ function testTableStruct(
// table getRowExtentAt
var rowExtent = table.getRowExtentAt(rowIdx, colIdx);
let idx;
/* eslint-disable no-empty */
for (
idx = rowIdx + 1;
idx < rowCount && aCellsArray[idx][colIdx] & kRowSpanned;
idx++
) {}
/* eslint-enable no-empty */
var expectedRowExtent = idx - rowIdx;
is(
@ -212,11 +214,13 @@ function testTableStruct(
// table getColumnExtentAt
var colExtent = table.getColumnExtentAt(rowIdx, colIdx);
/* eslint-disable no-empty */
for (
idx = colIdx + 1;
idx < colsCount && aCellsArray[rowIdx][idx] & kColSpanned;
idx++
) {}
/* eslint-enable no-empty */
var expectedColExtent = idx - colIdx;
is(