forked from mirrors/gecko-dev
Bug 1596056 - Enable ESLint on reftest harness files (manual fixes). r=tnikkel
Depends on D189058 Differential Revision: https://phabricator.services.mozilla.com/D189059
This commit is contained in:
parent
a0c258004e
commit
fae54d1098
4 changed files with 6 additions and 3 deletions
|
|
@ -24,6 +24,8 @@
|
||||||
# Also ignore reftest - specially crafted to produce expected output.
|
# Also ignore reftest - specially crafted to produce expected output.
|
||||||
**/reftest/
|
**/reftest/
|
||||||
**/reftests/
|
**/reftests/
|
||||||
|
# Don't ignore the reftest harness files.
|
||||||
|
!/layout/tools/reftest/
|
||||||
|
|
||||||
# Exclude expected objdirs.
|
# Exclude expected objdirs.
|
||||||
obj*/
|
obj*/
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,7 @@ for (let [key, val] of Object.entries({
|
||||||
dumpedConditionSandbox: false,
|
dumpedConditionSandbox: false,
|
||||||
},
|
},
|
||||||
})) {
|
})) {
|
||||||
|
// eslint-disable-next-line mozilla/reject-global-this
|
||||||
this[key] = val;
|
this[key] = val;
|
||||||
EXPORTED_SYMBOLS.push(key);
|
EXPORTED_SYMBOLS.push(key);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -682,7 +682,7 @@ function BuildConditionSandbox(aURL) {
|
||||||
sandbox.swgl = g.windowUtils.layerManagerType.startsWith(
|
sandbox.swgl = g.windowUtils.layerManagerType.startsWith(
|
||||||
"WebRender (Software"
|
"WebRender (Software"
|
||||||
);
|
);
|
||||||
sandbox.layersOMTC = g.windowUtils.layerManagerRemote == true;
|
sandbox.layersOMTC = !!g.windowUtils.layerManagerRemote;
|
||||||
|
|
||||||
// Shortcuts for widget toolkits.
|
// Shortcuts for widget toolkits.
|
||||||
sandbox.Android = xr.OS == "Android";
|
sandbox.Android = xr.OS == "Android";
|
||||||
|
|
|
||||||
|
|
@ -535,13 +535,13 @@ function WaitForTestEnd(
|
||||||
|
|
||||||
var operationInProgress = false;
|
var operationInProgress = false;
|
||||||
function OperationInProgress() {
|
function OperationInProgress() {
|
||||||
if (operationInProgress != false) {
|
if (operationInProgress) {
|
||||||
LogWarning("Nesting atomic operations?");
|
LogWarning("Nesting atomic operations?");
|
||||||
}
|
}
|
||||||
operationInProgress = true;
|
operationInProgress = true;
|
||||||
}
|
}
|
||||||
function OperationCompleted() {
|
function OperationCompleted() {
|
||||||
if (operationInProgress != true) {
|
if (!operationInProgress) {
|
||||||
LogWarning("Mismatched OperationInProgress/OperationCompleted calls?");
|
LogWarning("Mismatched OperationInProgress/OperationCompleted calls?");
|
||||||
}
|
}
|
||||||
operationInProgress = false;
|
operationInProgress = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue