toolkit/crashreporter/test/unit/test_crash_moz_crash.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:6e5ad3ad419b
1 function run_test()
2 {
3 // Try crashing with a runtime abort
4 do_crash(function() {
5 crashType = CrashTestUtils.CRASH_MOZ_CRASH;
6 crashReporter.annotateCrashReport("TestKey", "TestValue");
7 },
8 function(mdump, extra) {
9 do_check_eq(extra.TestKey, "TestValue");
10 do_check_false("OOMAllocationSize" in extra);
11 },
12 // process will exit with a zero exit status
13 true);
14 }

mercurial