diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
commit | ff2f287f82630ab3887d7d5c1e64e5b888ea0beb (patch) | |
tree | 4e96cb32aa2320a327024942d247c6b56ef8c199 /toolkit/crashreporter/test/unit_ipc | |
parent | bfc97728065cbbc7f6bbc281b654a2d1e079b48d (diff) | |
download | UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.gz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.lz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.xz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.zip |
Remove crashreporter toolkit files.
Resolves #20
Diffstat (limited to 'toolkit/crashreporter/test/unit_ipc')
6 files changed, 0 insertions, 107 deletions
diff --git a/toolkit/crashreporter/test/unit_ipc/.eslintrc.js b/toolkit/crashreporter/test/unit_ipc/.eslintrc.js deleted file mode 100644 index fee088c17..000000000 --- a/toolkit/crashreporter/test/unit_ipc/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = { - "extends": [ - "../../../../testing/xpcshell/xpcshell.eslintrc.js" - ] -}; diff --git a/toolkit/crashreporter/test/unit_ipc/test_content_annotation.js b/toolkit/crashreporter/test/unit_ipc/test_content_annotation.js deleted file mode 100644 index 8a5c962e3..000000000 --- a/toolkit/crashreporter/test/unit_ipc/test_content_annotation.js +++ /dev/null @@ -1,22 +0,0 @@ -load("../unit/head_crashreporter.js"); - -function run_test() -{ - if (!("@mozilla.org/toolkit/crash-reporter;1" in Components.classes)) { - dump("INFO | test_content_annotation.js | Can't test crashreporter in a non-libxul build.\n"); - return; - } - - // Try crashing with a runtime abort - do_content_crash(function() { - crashType = CrashTestUtils.CRASH_RUNTIMEABORT; - crashReporter.annotateCrashReport("TestKey", "TestValue"); - crashReporter.appendAppNotesToCrashReport("!!!foo!!!"); - }, - function(mdump, extra) { - do_check_eq(extra.TestKey, "TestValue"); - do_check_true('StartupTime' in extra); - do_check_true('ProcessType' in extra); - do_check_neq(extra.Notes.indexOf("!!!foo!!!"), -1); - }); -} diff --git a/toolkit/crashreporter/test/unit_ipc/test_content_exception_time_annotation.js b/toolkit/crashreporter/test/unit_ipc/test_content_exception_time_annotation.js deleted file mode 100644 index 810f683b2..000000000 --- a/toolkit/crashreporter/test/unit_ipc/test_content_exception_time_annotation.js +++ /dev/null @@ -1,17 +0,0 @@ -load("../unit/head_crashreporter.js"); - -function run_test() -{ - if (!("@mozilla.org/toolkit/crash-reporter;1" in Components.classes)) { - dump("INFO | test_content_annotation.js | Can't test crashreporter in a non-libxul build.\n"); - return; - } - - // Try crashing with an OOM - do_content_crash(function() { - crashType = CrashTestUtils.CRASH_OOM; - }, - function(mdump, extra) { - do_check_true('OOMAllocationSize' in extra); - }); -} diff --git a/toolkit/crashreporter/test/unit_ipc/test_content_memory_list.js b/toolkit/crashreporter/test/unit_ipc/test_content_memory_list.js deleted file mode 100644 index 906f57e83..000000000 --- a/toolkit/crashreporter/test/unit_ipc/test_content_memory_list.js +++ /dev/null @@ -1,23 +0,0 @@ -// Any copyright is dedicated to the Public Domain. -// http://creativecommons.org/publicdomain/zero/1.0/ - -load("../unit/head_crashreporter.js"); - -function run_test() -{ - var is_win7_or_newer = false; - var ph = Components.classes["@mozilla.org/network/protocol;1?name=http"] - .getService(Components.interfaces.nsIHttpProtocolHandler); - var match = ph.userAgent.match(/Windows NT (\d+).(\d+)/); - if (match && (parseInt(match[1]) > 6 || - parseInt(match[1]) == 6 && parseInt(match[2]) >= 1)) { - is_win7_or_newer = true; - } - - do_content_crash(null, function(mdump, extra) { - do_check_true(mdump.exists()); - do_check_true(mdump.fileSize > 0); - if (is_win7_or_newer) - do_check_true(CrashTestUtils.dumpHasStream(mdump.path, CrashTestUtils.MD_MEMORY_INFO_LIST_STREAM)); - }); -} diff --git a/toolkit/crashreporter/test/unit_ipc/test_content_oom_annotation_windows.js b/toolkit/crashreporter/test/unit_ipc/test_content_oom_annotation_windows.js deleted file mode 100644 index 9853696da..000000000 --- a/toolkit/crashreporter/test/unit_ipc/test_content_oom_annotation_windows.js +++ /dev/null @@ -1,23 +0,0 @@ -load("../unit/head_crashreporter.js"); - -function run_test() -{ - if (!("@mozilla.org/toolkit/crash-reporter;1" in Components.classes)) { - dump("INFO | test_content_annotation.js | Can't test crashreporter in a non-libxul build.\n"); - return; - } - - // Try crashing with an OOM - do_content_crash(function() { - crashType = CrashTestUtils.CRASH_OOM; - }, - function(mdump, extra) { - do_check_true("SystemMemoryUsePercentage" in extra); - do_check_true("TotalVirtualMemory" in extra); - do_check_true("AvailableVirtualMemory" in extra); - do_check_true("TotalPageFile" in extra); - do_check_true("AvailablePageFile" in extra); - do_check_true("TotalPhysicalMemory" in extra); - do_check_true("AvailablePhysicalMemory" in extra); - }); -} diff --git a/toolkit/crashreporter/test/unit_ipc/xpcshell.ini b/toolkit/crashreporter/test/unit_ipc/xpcshell.ini deleted file mode 100644 index 33fcc1a4c..000000000 --- a/toolkit/crashreporter/test/unit_ipc/xpcshell.ini +++ /dev/null @@ -1,15 +0,0 @@ -[DEFAULT] -head = -tail = -skip-if = toolkit == 'android' -support-files = - !/toolkit/crashreporter/test/unit/crasher_subprocess_head.js - !/toolkit/crashreporter/test/unit/crasher_subprocess_tail.js - !/toolkit/crashreporter/test/unit/head_crashreporter.js - -[test_content_annotation.js] -[test_content_exception_time_annotation.js] -[test_content_oom_annotation_windows.js] -skip-if = os != 'win' -[test_content_memory_list.js] -skip-if = os != 'win' |