1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/crashreporter/test/unit/test_crash_moz_crash.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +function run_test() 1.5 +{ 1.6 + // Try crashing with a runtime abort 1.7 + do_crash(function() { 1.8 + crashType = CrashTestUtils.CRASH_MOZ_CRASH; 1.9 + crashReporter.annotateCrashReport("TestKey", "TestValue"); 1.10 + }, 1.11 + function(mdump, extra) { 1.12 + do_check_eq(extra.TestKey, "TestValue"); 1.13 + do_check_false("OOMAllocationSize" in extra); 1.14 + }, 1.15 + // process will exit with a zero exit status 1.16 + true); 1.17 +}