Bug 1121013 part B - test that part A is writing out event files and annotations are making it back into the crash manager, r=ted

--HG--
extra : rebase_source : cf6a43d67c4876be6ec19db5f4389d405e88cfe0
extra : source : 7cecb4e23fcf3bd8693e7b421abe29abb07ce01e
This commit is contained in:
Benjamin Smedberg 2015-03-25 14:41:13 -04:00
Родитель f2605b383f
Коммит 254715ac08
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -24,7 +24,11 @@ add_task(function* test_main_process_crash() {
let basename;
let deferred = Promise.defer();
do_crash("crashType = CrashTestUtils.CRASH_RUNTIMEABORT;",
do_crash(
function() {
crashType = CrashTestUtils.CRASH_RUNTIMEABORT;
crashReporter.annotateCrashReport("ShutdownProgress", "event-test");
},
(minidump, extra) => {
basename = minidump.leafName;
cm._eventsDirs = [getEventDir()];
@ -39,4 +43,5 @@ add_task(function* test_main_process_crash() {
let crash = crashes[0];
Assert.ok(crash.isOfType(cm.PROCESS_TYPE_MAIN, cm.CRASH_TYPE_CRASH));
Assert.equal(crash.id + ".dmp", basename, "ID recorded properly");
Assert.equal(crash.metadata.ShutdownProgress, "event-test");
});