Bug 507963 - Intermittent failure of browser_privatebrowsing_findbar.js r=ehsan

This commit is contained in:
Marco Bonardo 2009-08-06 16:34:13 +02:00
parent 92bbf90cfa
commit 9657d2d68d

View File

@ -50,8 +50,14 @@ function test() {
const kTestSearchString = "privatebrowsing";
let findBox = gFindBar.getElement("findbar-textbox");
gFindBar.startFind(gFindBar.FIND_NORMAL);
for (let i = 0; i < kTestSearchString.length; ++ i)
EventUtils.synthesizeKey(kTestSearchString[i], {});
// sanity checks
is(findBox.editor.transactionManager.numberOfUndoItems, 0,
"No items in the undo list of the findbar control");
is(findBox.value, "",
"findbar text is empty");
findBox.value = kTestSearchString;
// enter private browsing mode
pb.privateBrowsingEnabled = true;