Bug 802968 - Fix racy test behavior. r=me DONTBUILD
authorBobby Holley <bobbyholley@gmail.com>
Thu, 18 Oct 2012 14:41:13 +0200
changeset 110664 c9fe407b3492765e28b1a0fbc1ec93729bf75048
parent 110663 56d0d35f515a0355a8345897f11358e160439146
child 110665 f5760fcd8420024880880780b9f655c8b2434488
push id23708
push userryanvm@gmail.com
push dateFri, 19 Oct 2012 01:28:59 +0000
treeherdermozilla-central@fd5556088388 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs802968
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 802968 - Fix racy test behavior. r=me DONTBUILD
js/xpconnect/tests/chrome/test_bug801241.xul
--- a/js/xpconnect/tests/chrome/test_bug801241.xul
+++ b/js/xpconnect/tests/chrome/test_bug801241.xul
@@ -27,16 +27,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       win.location = win.location;
       ok(true, "Didn't throw setting from location");
     } catch (e) {
       ok(false, "Threw setting location from sandbox");
     }
   }
 
   function go() {
+    document.getElementById('ifr').onload = null;
     var sb = new Cu.Sandbox(this);
     sb.win = document.getElementById('ifr').contentWindow;
     sb.ok = ok;
     Cu.evalInSandbox('(' + sbCode.toSource() + ')()', sb);
     SimpleTest.finish();
   }
 
   ]]>