Bug 716677 - test_bug296375.xul makes incorrect assumptions about the event ordering; r=smaug
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 10 Jan 2012 12:42:47 -0500
changeset 85359 2b4c5610aa69ad332fe20527f0cd06cc071850bf
parent 85358 9fb4756a6cbcc8caa8e1279f56df7cdb992b727e
child 85360 1dd32322b52950666989f8ca785b84db19ef1034
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs716677, 296375
milestone12.0a1
Bug 716677 - test_bug296375.xul makes incorrect assumptions about the event ordering; r=smaug
content/xbl/test/test_bug296375.xul
--- a/content/xbl/test/test_bug296375.xul
+++ b/content/xbl/test/test_bug296375.xul
@@ -28,14 +28,14 @@ https://bugzilla.mozilla.org/show_bug.cg
 
 /** Test for Bug 296375 **/
 
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(function () {
   document.addBinding(document.getElementById("b"),
                       "chrome://global/content/bindings/checkbox.xml#checkbox");
   ok(true, "addBinding didn't cause a crash");
+  SimpleTest.finish();
 });
-addLoadEvent(SimpleTest.finish);
 ]]>
 </script>
 
 </window>