Remove unneeded focus check in order to fix
bug 508188
--- 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.