diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /dom/filesystem/compat/tests | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/filesystem/compat/tests')
-rw-r--r-- | dom/filesystem/compat/tests/script_entries.js | 4 | ||||
-rw-r--r-- | dom/filesystem/compat/tests/test_basic.html | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/dom/filesystem/compat/tests/script_entries.js b/dom/filesystem/compat/tests/script_entries.js index 7f52fe6bf2..74f3ee18bc 100644 --- a/dom/filesystem/compat/tests/script_entries.js +++ b/dom/filesystem/compat/tests/script_entries.js @@ -3,7 +3,7 @@ Cu.importGlobalProperties(["File", "Directory"]); var tmpFile, tmpDir; -addMessageListener("entries.open", function (e) { +addMessageListener("entries.open", function () { tmpFile = Services.dirsvc .QueryInterface(Ci.nsIProperties) .get("TmpD", Ci.nsIFile); @@ -40,7 +40,7 @@ addMessageListener("entries.open", function (e) { }); }); -addMessageListener("entries.delete", function (e) { +addMessageListener("entries.delete", function () { tmpFile.remove(true); tmpDir.remove(true); sendAsyncMessage("entries.deleted"); diff --git a/dom/filesystem/compat/tests/test_basic.html b/dom/filesystem/compat/tests/test_basic.html index 4ad0c37d67..552827eb4f 100644 --- a/dom/filesystem/compat/tests/test_basic.html +++ b/dom/filesystem/compat/tests/test_basic.html @@ -168,7 +168,7 @@ function test_directoryEntry_getFile_simple() { function(e) { is(e.name, "foo.txt", "We have the right FileEntry."); test_getParent(e, directoryEntry, /* nested */ false); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -178,7 +178,7 @@ function test_directoryEntry_getFile_deep() { function(e) { is(e.name, "bar..txt", "We have the right FileEntry."); test_getParent(e, directoryEntry, /* nested */ true); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -228,7 +228,7 @@ function test_directoryEntry_getDirectory_simple() { function(e) { is(e.name, "subdir", "We have the right DirectoryEntry."); test_getParent(e, directoryEntry, /* nested */ false); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -238,7 +238,7 @@ function test_directoryEntry_getDirectory_deep() { function(e) { is(e.name, "subsubdir", "We have the right DirectoryEntry."); test_getParent(e, directoryEntry, /* nested */ true); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -308,7 +308,7 @@ function test_root_getFile_simple() { function(e) { is(e.name, fileEntry.name, "We have the right FileEntry."); next(); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -318,7 +318,7 @@ function test_root_getFile_deep() { function(e) { is(e.name, "bar..txt", "We have the right FileEntry."); next(); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -368,7 +368,7 @@ function test_root_getDirectory_simple() { function(e) { is(e.name, directoryEntry.name, "We have the right DirectoryEntry."); next(); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -378,7 +378,7 @@ function test_root_getDirectory_deep() { function(e) { is(e.name, "subsubdir", "We have the right DirectoryEntry."); next(); - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } @@ -402,7 +402,7 @@ function test_getParent(entry, parentEntry, nested) { } else { test_getParent(e, parentEntry, false); } - }, function(e) { + }, function() { ok(false, "This should not happen."); }); } |