Bug 584995 follow-up: Make waitForFocus output appear in browser-chrome test logs again. r=enn
authorDão Gottwald <dao@mozilla.com>
Mon, 16 Aug 2010 22:10:32 +0200
changeset 50717 51e296a1db95dd0ece4e288874e71f85eaad0b99
parent 50716 116f2046b9efa7d6cbf7de100165a4a601512e43
child 50718 1b3ababd70a6a58a7b3f9b9896c817a93a15b28e
push idunknown
push userunknown
push dateunknown
reviewersenn
bugs584995
milestone2.0b4pre
Bug 584995 follow-up: Make waitForFocus output appear in browser-chrome test logs again. r=enn
testing/mochitest/tests/SimpleTest/SimpleTest.js
--- a/testing/mochitest/tests/SimpleTest/SimpleTest.js
+++ b/testing/mochitest/tests/SimpleTest/SimpleTest.js
@@ -296,16 +296,18 @@ SimpleTest.waitForFocus = function (call
 
     var childTargetWindow = { };
     fm.getFocusedElementForWindow(targetWindow, true, childTargetWindow);
     childTargetWindow = childTargetWindow.value;
 
     function info(msg) {
       if (SimpleTest._logEnabled)
         SimpleTest._logResult({result: true, name: msg}, "TEST-INFO");
+      else
+        dump("TEST-INFO | " + msg + "\n");
     }
 
     function debugFocusLog(prefix) {
         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
         var baseWindow = targetWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                                      .getInterface(Components.interfaces.nsIWebNavigation)
                                      .QueryInterface(Components.interfaces.nsIBaseWindow);