Bug 815229 - Make search completion test for private browsing test all autocomplete entries. r=ehsan

This commit is contained in:
Josh Matthews 2012-11-26 14:04:07 -05:00
parent b6cd1fb640
commit 8f54709b0a
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ function doPrivateTest(searchBar) {
popup.addEventListener("popupshowing", function showing() {
let entries = getMenuEntries(searchBar);
for (var i = 0; i < entries.length; i++)
isnot(entries[0], "private test", "shouldn't see private autocomplete entries");
isnot(entries[i], "private test", "shouldn't see private autocomplete entries");
popup.removeEventListener("popupshowing", showing, false);
searchBar.textbox.toggleHistoryPopup();

View File

@ -89,7 +89,7 @@ function checkSearchPopup(aWin, aCallback) {
let entries = getMenuEntries(searchBar);
for (let i = 0; i < entries.length; i++) {
isnot(entries[0], "private test",
isnot(entries[i], "private test",
"shouldn't see private autocomplete entries");
}