Remove unneeded focus check in order to fix bug 508188
authorJonathan Griffin <jgriffin@mozilla.com>
Tue, 04 Aug 2009 10:43:15 -0700
changeset 31114 91467022ddfa78a32ad8a4ebe1b20348bb306df7
parent 31113 3ce467cf8e0d4a073bae7196a700363984e75542
child 31115 5cb576a2923ac609da65a0bfba1f154c7a34d970
push id8376
push userjgriffin@mozilla.com
push dateTue, 04 Aug 2009 17:43:55 +0000
treeherderautoland@91467022ddfa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs508188
milestone1.9.2a1pre
Remove unneeded focus check in order to fix bug 508188
docshell/test/chrome/bug298622_window.xul
--- a/docshell/test/chrome/bug298622_window.xul
+++ b/docshell/test/chrome/bug298622_window.xul
@@ -60,21 +60,17 @@
       yield;
 
       // Make sure we unsuppress painting before continuing
       SimpleTest.executeSoon(nextTest);
       yield;
 
       // Search for some text that's on the second page (but not on
       // the first page), and verify that it can be found.
-      var findFocused = false;
       gFindBar = document.getElementById("FindToolbar");
-      gFindBar._findField.inputField.onfocus = function () {
-        findFocused = true;
-      };
       document.getElementById("cmd_find").doCommand();
       ok(!gFindBar.hidden, "failed to open findbar");
       gFindBar._findField.value = "A generic page";
       gFindBar._find();
       SimpleTest.executeSoon(nextTest);
       yield;
 
       // Make sure Find bar's internal status is not 'notfound'
@@ -86,18 +82,16 @@
       // before continuing
       waitForTrue(function() {
         return (
           TestWindow.getWindow().getSelection().toString().toLowerCase() == 
           "a generic page");
       }, nextTest, 20);
       yield;
 
-      ok(findFocused, 
-        "find input field doesn't have the focus, find operation will fail!");
       is(gFindBar._findField.inputField.value, "A generic page",
         "expected text not present in find input field");
       is(TestWindow.getWindow().getSelection().toString().toLowerCase(),
          "a generic page",
          "find failed on second page loaded");
 
       // Go back to the original page and verify it's loaded from the
       // bfcache.