Bug 848935 - catch Task exceptions for intermittent failures in browser_aboutHome.js
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 12 Apr 2013 17:54:16 +0200
changeset 128639 a4ee183c4c25aee1fc1a87bf777da3e41ff751fe
parent 128638 dce64e93ed0c6a534ad58aceba69abb0ad3b2a67
child 128640 1f956ddfa7a4593f2b291238d041c4a71eee15dd
push id24534
push userryanvm@gmail.com
push dateSat, 13 Apr 2013 02:08:32 +0000
treeherdermozilla-central@5fc7f4b572ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs848935
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 848935 - catch Task exceptions for intermittent failures in browser_aboutHome.js
browser/base/content/test/browser_aboutHome.js
--- a/browser/base/content/test/browser_aboutHome.js
+++ b/browser/base/content/test/browser_aboutHome.js
@@ -268,17 +268,18 @@ function test()
       let snippetsMap = yield promiseSetupSnippetsMap(tab, test.setup);
       // Ensure browser has set attributes already, or wait for them.
       yield promise;
       info("Running test");
       yield test.run(snippetsMap);
       info("Cleanup");
       gBrowser.removeCurrentTab();
     }
-
+  }).then(finish, ex => {
+    ok(false, "Unexpected Exception: " + ex);
     finish();
   });
 }
 
 /**
  * Creates a new tab and waits for a load event.
  *
  * @param aUrl