gecko/toolkit/crashreporter/test/unit/test_crashreporter_appmem.js
2011-07-07 17:31:11 -07:00

13 lines
370 B
JavaScript

function run_test()
{
do_crash(function() {
appAddr = CrashTestUtils.saveAppMemory();
crashReporter.registerAppMemory(appAddr, 32);
},
function(mdump, extra) {
do_check_true(mdump.exists());
do_check_true(mdump.fileSize > 0);
do_check_true(CrashTestUtils.dumpCheckMemory(mdump.path));
});
}