Revert logging added when debugging bug 399852.
authordolske@mozilla.com
Tue, 18 Mar 2008 13:19:15 -0700
changeset 13262 0d12c9237e016368e296dd37057dc5fe991b22c8
parent 13261 2e0f2e0f573025d1b806698890c6436c9045d590
child 13263 601ea65a1056a0594fb2514e6c8387d2794c99f1
push idunknown
push userunknown
push dateunknown
bugs399852
milestone1.9b5pre
Revert logging added when debugging bug 399852.
toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html
--- a/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html
+++ b/toolkit/components/passwordmgr/test/test_basic_form_autocomplete.html
@@ -79,17 +79,16 @@ try {
 }
 
 
 // Restore the form to the default state.
 function restoreForm() {
     uname.value = "";
     pword.value = "";
     uname.focus();
-    ok(document.activeElement == uname, "Username should be focused.");
 }
 
 
 // Check for expected username/password in form.
 function checkACForm(expectedUsername, expectedPassword) {
   is(uname.value, expectedUsername, "Checking form username");
   is(pword.value, expectedPassword, "Checking form password");
 }
@@ -122,17 +121,16 @@ function doKey(aKey, modifier) {
  * processes asynchronously, so we need to interrupt our flow with lots of
  * setTimeout() calls. The case statements are executed in order, one per
  * timeout.
  */
 function runTest(testNum) {
   // Seems we need to enable this again, or sendKeyEvent() complaints.
   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
   ok(true, "Starting test #" + testNum);
-  ok(document.hasFocus(), "Document should be focused");
 
   switch(testNum) {
     case 1:
         // Make sure initial form is empty.
         checkACForm("", "");
         // Trigger autocomplete popup
         restoreForm();
         doKey("down");
@@ -414,39 +412,20 @@ function runTest(testNum) {
         SimpleTest.finish();
         return;
   }
 
   setTimeout(runTest, 50, testNum + 1); // XXX 40ms was too slow, why?
 }
 
 
-function __log(message) {
-  var m = '[CPEARCE] ' + message;
-  dump(m);
-  ok(true, m);
-}
-
-
 function startTest() {
-  __log('JS: onload() document.hasFocus=' + document.hasFocus()
-    +' document.activeElement=[tag=' + document.activeElement.tagName +' name=' +document.activeElement.name +']\n');  
-  runTest(1);
+    runTest(1);
 }
 
 window.onload = startTest;
 
-window.onfocus = function() {
-  __log('JS: onfocus() document.hasFocus=' + document.hasFocus()
-    +' document.activeElement=[tag=' + document.activeElement.tagName +' name=' +document.activeElement.name +']\n');
-}
-
-window.onblur = function() {
-  __log('JS: onblur() document.hasFocus=' + document.hasFocus()
-    +' document.activeElement=[tag=' + document.activeElement.tagName +' name=' +document.activeElement.name +']\n');
-}
-
 SimpleTest.waitForExplicitFinish();
 </script>
 </pre>
 </body>
 </html>