Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 811102: bustage fix #3 :(, a=sigh

--HG--
extra : transplant_source : %0F%D8%1Bv%3EP%935%7E%E2%1A%E4F%0C%7F%F8%1F%FFP%1D
  • Loading branch information...
commit c299617154f5ac15eac8953a1503f7ec915288bb 1 parent f5705fe
@gavinsharp gavinsharp authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 toolkit/components/social/test/browser/browser_frameworker.js
View
10 toolkit/components/social/test/browser/browser_frameworker.js
@@ -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() {
@@ -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();

0 comments on commit c299617

Please sign in to comment.
Something went wrong with that request. Please try again.