mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for modules. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D155172
This commit is contained in:
parent
baa8dfdef9
commit
9ed9c3503d
@ -480,7 +480,6 @@ module.exports = {
|
||||
"dom/**",
|
||||
"image/test/browser/browser_image.js",
|
||||
"layout/**",
|
||||
"modules/**",
|
||||
"netwerk/**",
|
||||
"remote/**",
|
||||
"storage/test/unit/test_vacuum.js",
|
||||
|
@ -38,6 +38,6 @@ function run_test() {
|
||||
zipreader.close();
|
||||
zipreader = null;
|
||||
Cu.forceGC();
|
||||
Assert.ok(stream.read(1024).length > 0);
|
||||
Assert.ok(dirstream.read(100).length > 0);
|
||||
Assert.ok(!!stream.read(1024).length);
|
||||
Assert.ok(!!dirstream.read(100).length);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ add_task(async function test() {
|
||||
Assert.throws(
|
||||
() => {
|
||||
while (true) {
|
||||
Assert.ok(stream.read(1024).length > 0);
|
||||
Assert.ok(!!stream.read(1024).length);
|
||||
}
|
||||
},
|
||||
/NS_ERROR_FAILURE/,
|
||||
|
@ -37,6 +37,6 @@ function run_test() {
|
||||
zipreader.close();
|
||||
zipreader = null;
|
||||
Cu.forceGC();
|
||||
Assert.ok(stream.read(1024).length > 0);
|
||||
Assert.ok(dirstream.read(100).length > 0);
|
||||
Assert.ok(!!stream.read(1024).length);
|
||||
Assert.ok(!!dirstream.read(100).length);
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ function run_tests(obj) {
|
||||
*/
|
||||
function createMAR(outMAR, dataDir, files) {
|
||||
// You cannot create an empy MAR.
|
||||
Assert.ok(files.length > 0);
|
||||
Assert.ok(!!files.length);
|
||||
|
||||
// Get an nsIProcess to the signmar binary.
|
||||
let process = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess);
|
||||
|
Loading…
Reference in New Issue
Block a user