diff -r 000000000000 -r 6474c204b198 toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,146 @@ +function cleanup_and_finish() { + try { + cleanup_fake_appdir(); + } catch(ex) {} + Services.prefs.clearUserPref("breakpad.reportURL"); + gBrowser.removeTab(gBrowser.selectedTab); + finish(); +} + +/* + * check_crash_list + * + * Check that the list of crashes displayed by about:crashes matches + * the list of crashes that we placed in the pending+submitted directories. + */ +function check_crash_list(tab, crashes) { + let doc = gBrowser.getBrowserForTab(tab).contentDocument; + let crashlinks = doc.getElementById("tbody").getElementsByTagName("a"); + is(crashlinks.length, crashes.length, + "about:crashes lists correct number of crash reports"); + // no point in checking this if the lists aren't the same length + if (crashlinks.length == crashes.length) { + for(let i=0; i