Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 811102: bustage fix #3 :(, a=sigh
Browse files Browse the repository at this point in the history
--HG--
extra : transplant_source : %0F%D8%1Bv%3EP%935%7E%E2%1A%E4F%0C%7F%F8%1F%FFP%1D
  • Loading branch information
gavinsharp committed Nov 13, 2012
1 parent f5705fe commit c299617
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions toolkit/components/social/test/browser/browser_frameworker.js
Expand Up @@ -512,6 +512,11 @@ let tests = {
},

testWorkerConnectError: function(cbnext) {
let run = function () {
onconnect = function(e) {
throw new Error("worker failure");
}
}
let worker = getFrameWorkerHandle(makeWorkerUrl(run),
undefined, "testWorkerConnectError");
Services.obs.addObserver(function handleError() {
Expand All @@ -520,11 +525,6 @@ let tests = {
worker.terminate();
cbnext();
}, 'social:frameworker-error', false);
let run = function () {
onconnect = function(e) {
throw new Error("worker failure");
}
}
worker.port.onmessage = function(e) {
ok(false, "social:frameworker-error was handled");
cbnext();
Expand Down

0 comments on commit c299617

Please sign in to comment.