Bug 675221 part H - fix test_bug489671 which is throwing exceptions from a console listener, which is supposed to fail to prevent infinite recursion or infinite repetition behavior. r=bz
authorBenjamin Smedberg <benjamin@smedbergs.us>
Wed, 11 Jan 2012 11:28:21 -0500
changeset 85407 2d79876ee1421bb02c92f6dc925c8f4f2298d207
parent 85406 86da3ca1e3aefcc089892d8e9cab9d0a70c7e091
child 85408 17a76e33b6fe31c11dd22d8031a7f514f1c1631f
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)
reviewersbz
bugs675221, 489671
milestone12.0a1
Bug 675221 part H - fix test_bug489671 which is throwing exceptions from a console listener, which is supposed to fail to prevent infinite recursion or infinite repetition behavior. r=bz
content/events/test/test_bug489671.html
--- a/content/events/test/test_bug489671.html
+++ b/content/events/test/test_bug489671.html
@@ -25,17 +25,17 @@ const Ci = Components.interfaces;
 const Cr = Components.results;
 
 var listener = {
   observe: function(message) {
     netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
 
     is(message.QueryInterface(Ci.nsIScriptError).errorMessage,
        "uncaught exception: Got click");
-    nextTest();
+    SimpleTest.executeSoon(nextTest);
   },
 
   QueryInterface: function(iid) {
     netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
     if (iid.equals(Ci.nsIConsoleListener) ||
         iid.equals(Ci.nsISupports)) {
       return this;
     }