mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 507963 - Intermittent failure of browser_privatebrowsing_findbar.js r=ehsan
This commit is contained in:
parent
408a69e9bf
commit
97650a8c71
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user