Bug 992270 - ignoreAllUncaughtExceptions in the about:home test of browser_google_behavior.js/browser_bing_behavior.js. r=gavin

CLOSED TREE
This commit is contained in:
Matthew Noorenberghe 2014-04-10 21:54:30 -04:00
parent 661954ff3b
commit bdb75ddb9c
2 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,9 @@ function test() {
name: "home page search",
searchURL: base + "&form=MOZSPG",
run: function () {
// Bug 992270: Ignore uncaught about:home exceptions (related to snippets from IndexedDB)
ignoreAllUncaughtExceptions(true);
// load about:home, but remove the listener first so it doesn't
// get in the way
gBrowser.removeProgressListener(listener);
@ -101,6 +104,9 @@ function test() {
];
function nextTest() {
// Make sure we listen again for uncaught exceptions in the next test or cleanup.
ignoreAllUncaughtExceptions(false);
if (gTests.length) {
gCurrTest = gTests.shift();
info("Running : " + gCurrTest.name);

View File

@ -99,6 +99,9 @@ function test() {
name: "home page search",
searchURL: base + "&channel=np&source=hp",
run: function () {
// Bug 992270: Ignore uncaught about:home exceptions (related to snippets from IndexedDB)
ignoreAllUncaughtExceptions(true);
// load about:home, but remove the listener first so it doesn't
// get in the way
gBrowser.removeProgressListener(listener);
@ -131,6 +134,9 @@ function test() {
];
function nextTest() {
// Make sure we listen again for uncaught exceptions in the next test or cleanup.
ignoreAllUncaughtExceptions(false);
if (gTests.length) {
gCurrTest = gTests.shift();
info("Running : " + gCurrTest.name);