summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js')
-rw-r--r--toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js b/toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js
deleted file mode 100644
index 084730cba..000000000
--- a/toolkit/crashreporter/test/unit/test_crash_after_js_large_allocation_failure.js
+++ /dev/null
@@ -1,21 +0,0 @@
-function run_test()
-{
- if (!("@mozilla.org/toolkit/crash-reporter;1" in Components.classes)) {
- dump("INFO | test_crash_after_js_large_allocation_failure.js | Can't test crashreporter in a non-libxul build.\n");
- return;
- }
-
- do_crash(
- function() {
- crashType = CrashTestUtils.CRASH_MOZ_CRASH;
- crashReporter.annotateCrashReport("TestingOOMCrash", "Yes");
- Components.utils.getJSTestingFunctions().reportLargeAllocationFailure();
- Components.utils.forceGC();
- },
- function(mdump, extra) {
- do_check_eq(extra.TestingOOMCrash, "Yes");
- do_check_false("JSOutOfMemory" in extra);
- do_check_eq(extra.JSLargeAllocationFailure, "Recovered");
- },
- true);
-}