Bug 1884265, 1884785: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd 2024-03-13 17:08:39 +00:00
Родитель 444d0ac965
Коммит ee6cc0bdef
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -24,7 +24,10 @@ add_task(async function test_default_executable() {
let defaultExecutableFile = mimeInfo.defaultExecutable; let defaultExecutableFile = mimeInfo.defaultExecutable;
if (defaultExecutableFile) { if (defaultExecutableFile) {
if (AppConstants.platform == "win") { if (AppConstants.platform == "win") {
Assert.ok(defaultExecutableFile.leafName.endsWith(".exe"), "Default browser on Windows should end with .exe"); Assert.ok(
defaultExecutableFile.leafName.endsWith(".exe"),
"Default browser on Windows should end with .exe"
);
} }
} }
@ -41,7 +44,10 @@ add_task(async function test_default_executable() {
} }
} }
Assert.ok(foundDefaultInList, "The default browser must be returned in the list of executables from the mime info"); Assert.ok(
foundDefaultInList,
"The default browser must be returned in the list of executables from the mime info"
);
} else { } else {
Assert.throws( Assert.throws(
() => mimeInfo.defaultExecutable, () => mimeInfo.defaultExecutable,