summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/test/unit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /toolkit/crashreporter/test/unit
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/crashreporter/test/unit')
-rw-r--r--toolkit/crashreporter/test/unit/head_win64cfi.js2
-rw-r--r--toolkit/crashreporter/test/unit/test_crash_stack_overflow.js2
-rw-r--r--toolkit/crashreporter/test/unit/test_crashreporter_appmem.js2
-rw-r--r--toolkit/crashreporter/test/unit/test_event_files.js2
-rw-r--r--toolkit/crashreporter/test/unit/test_override_exception_handler.js2
5 files changed, 5 insertions, 5 deletions
diff --git a/toolkit/crashreporter/test/unit/head_win64cfi.js b/toolkit/crashreporter/test/unit/head_win64cfi.js
index 4df99213db..2daa64aecc 100644
--- a/toolkit/crashreporter/test/unit/head_win64cfi.js
+++ b/toolkit/crashreporter/test/unit/head_win64cfi.js
@@ -184,7 +184,7 @@ function assertStack(stack, expected) {
// Performs a crash, runs minidump-analyzer, and checks expected stack analysis.
//
-// how: The crash to perform. Constants defined in both CrashTestUtils.jsm
+// how: The crash to perform. Constants defined in both CrashTestUtils.sys.mjs
// and nsTestCrasher.cpp (i.e. CRASH_X64CFI_PUSH_NONVOL)
// expectedStack: An array of {"symbol", "trust"} where trust is "cfi",
// "context", "scan", et al. May be null if you don't need to check the stack.
diff --git a/toolkit/crashreporter/test/unit/test_crash_stack_overflow.js b/toolkit/crashreporter/test/unit/test_crash_stack_overflow.js
index a47c217238..7c1d3821ec 100644
--- a/toolkit/crashreporter/test/unit/test_crash_stack_overflow.js
+++ b/toolkit/crashreporter/test/unit/test_crash_stack_overflow.js
@@ -12,7 +12,7 @@ add_task(async function run_test() {
crashType = CrashTestUtils.CRASH_STACK_OVERFLOW;
crashReporter.annotateCrashReport("TestKey", "TestValue");
},
- async function (mdump, extra, extraFile) {
+ async function (mdump, extra) {
Assert.equal(extra.TestKey, "TestValue");
},
// process will exit with a zero exit status
diff --git a/toolkit/crashreporter/test/unit/test_crashreporter_appmem.js b/toolkit/crashreporter/test/unit/test_crashreporter_appmem.js
index f42fe10f0c..dcf5bd3153 100644
--- a/toolkit/crashreporter/test/unit/test_crashreporter_appmem.js
+++ b/toolkit/crashreporter/test/unit/test_crashreporter_appmem.js
@@ -4,7 +4,7 @@ add_task(async function run_test() {
let appAddr = CrashTestUtils.saveAppMemory();
crashReporter.registerAppMemory(appAddr, 32);
},
- function (mdump, extra) {
+ function (mdump) {
Assert.ok(mdump.exists());
Assert.ok(mdump.fileSize > 0);
Assert.ok(CrashTestUtils.dumpCheckMemory(mdump.path));
diff --git a/toolkit/crashreporter/test/unit/test_event_files.js b/toolkit/crashreporter/test/unit/test_event_files.js
index 844d7700ff..f4054089ea 100644
--- a/toolkit/crashreporter/test/unit/test_event_files.js
+++ b/toolkit/crashreporter/test/unit/test_event_files.js
@@ -24,7 +24,7 @@ add_task(async function test_main_process_crash() {
crashType = CrashTestUtils.CRASH_MOZ_CRASH;
crashReporter.annotateCrashReport("ShutdownProgress", "event-test");
},
- (minidump, extra) => {
+ minidump => {
basename = minidump.leafName;
Object.defineProperty(cm, "_eventsDirs", { value: [getEventDir()] });
cm.aggregateEventsFiles().then(resolve, reject);
diff --git a/toolkit/crashreporter/test/unit/test_override_exception_handler.js b/toolkit/crashreporter/test/unit/test_override_exception_handler.js
index 1b4dec8a61..caabc12de8 100644
--- a/toolkit/crashreporter/test/unit/test_override_exception_handler.js
+++ b/toolkit/crashreporter/test/unit/test_override_exception_handler.js
@@ -5,7 +5,7 @@ add_task(async function run_test() {
function () {
CrashTestUtils.TryOverrideExceptionHandler();
},
- function (mdump, extra) {},
+ function () {},
true
);
});