Bug 597029 - timeout in browser_privatebrowsing_forgetthissite.js; r=dolske a=NPOTB

This commit is contained in:
Ehsan Akhgari 2010-10-12 18:00:34 -04:00
Родитель 069a08d8ef
Коммит 9e1ccbe94e
1 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -59,9 +59,7 @@ function test() {
Services.ww.unregisterNotification(observer);
let organizer = aSubject.QueryInterface(Ci.nsIDOMWindow);
organizer.addEventListener("load", function onLoad(event) {
organizer.removeEventListener("load", onLoad, false);
executeSoon(function () {
SimpleTest.waitForFocus(function() {
// Select History in the left pane.
let PO = organizer.PlacesOrganizer;
PO.selectLeftPaneQuery('History');
@ -92,13 +90,13 @@ function test() {
// Proceed
funcNext();
}, false);
let event = document.createEvent("MouseEvents");
event.initMouseEvent("contextmenu", true, true, organizer, 0,
0, 0, 0, 0, false, false, false, false,
0, null);
tree.dispatchEvent(event);
});
}, false);
// Get cell coordinates
var x = {}, y = {}, width = {}, height = {};
tree.treeBoxObject.getCoordsForCellItem(0, tree.columns[0], "text",
x, y, width, height);
// Initiate a context menu for the selected cell
EventUtils.synthesizeMouse(tree.body, x + 4, y + 4, {type: "contextmenu"}, organizer);
}, organizer);
}
Services.ww.registerNotification(observer);