Bug 1857866 - Enable ESLint rule complexity on all of dom/. r=dom-core,mccr8

Differential Revision: https://phabricator.services.mozilla.com/D190438
This commit is contained in:
Mark Banner 2023-10-12 16:49:48 +00:00
parent 9074f1b101
commit 3357a854df
2 changed files with 2 additions and 2 deletions

View File

@ -536,7 +536,6 @@ module.exports = {
"dom/serviceworkers/test/test_serviceworkermanager.xhtml",
"dom/tests/mochitest/chrome/sizemode_attribute.xhtml",
"dom/tests/mochitest/chrome/test_cyclecollector.xhtml",
"dom/tests/mochitest/chrome/window_focus.xhtml",
"dom/workers/test/test_WorkerDebugger.xhtml",
"dom/workers/test/test_WorkerDebugger_console.xhtml",
"dom/workers/test/test_fileReadSlice.xhtml",
@ -546,7 +545,6 @@ module.exports = {
rules: {
"mozilla/no-useless-removeEventListener": "off",
"mozilla/use-services": "off",
complexity: "off",
"no-caller": "off",
"no-lone-blocks": "off",
"no-redeclare": "off",

View File

@ -94,6 +94,7 @@ function eventOccured(event)
gEvents += event.type + ": " + id;
}
// eslint-disable-next-line complexity
function expectFocusShift(callback, expectedWindow, expectedElement, focusChanged, testid)
{
if (expectedWindow == null)
@ -358,6 +359,7 @@ function getById(id)
return element;
}
// eslint-disable-next-line complexity
function startTest()
{
if (gTestStarted)