Bug 811102: bustage fix #3 :(
authorGavin Sharp <gavin@gavinsharp.com>
Mon, 12 Nov 2012 23:28:54 -0800
changeset 113068 a1e3296bcd218d8e284e800acbe71325eaeab0b1
parent 113067 d55265a9730401d794c02f029507b551c0109c67
child 113069 2378c3dd095d6a27e5ae93a2f8bfbdabb8098045
push id17924
push usergsharp@mozilla.com
push dateTue, 13 Nov 2012 07:31:42 +0000
treeherdermozilla-inbound@a1e3296bcd21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs811102
milestone19.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 811102: bustage fix #3 :(
toolkit/components/social/test/browser/browser_frameworker.js
--- a/toolkit/components/social/test/browser/browser_frameworker.js
+++ b/toolkit/components/social/test/browser/browser_frameworker.js
@@ -507,29 +507,29 @@ let tests = {
     }, 'social:frameworker-error', false);
     worker.port.onmessage = function(e) {
       ok(false, "social:frameworker-error was handled");
       cbnext();
     }
   },
 
   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() {
       Services.obs.removeObserver(handleError, "social:frameworker-error");
         ok(true, "social:frameworker-error was handled");
         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();
     }
   },
 
   testReloadAndNewPort: function(cbnext) {
     let run = function () {