Bug 541404 - browser_privatebrowsing_openlocation.js hangs when I run it on Ubuntu; r=gavin

This commit is contained in:
Ehsan Akhgari 2010-04-14 20:16:41 -04:00
Родитель 8a361cc9d3
Коммит 8f42b0dd21
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -40,6 +40,7 @@
function test() {
// initialization
gPrefService.setBoolPref("browser.privatebrowsing.keep_current_session", true);
let pb = Cc["@mozilla.org/privatebrowsing;1"].
getService(Ci.nsIPrivateBrowsingService);
waitForExplicitFinish();
@ -61,14 +62,14 @@ function test() {
executeSoon(callback);
}, true);
executeSoon(function() {
SimpleTest.waitForFocus(function() {
let input = dialog.document.getElementById("dialog.input");
is(input.value, autofilled, "The input field should be correctly auto-filled");
input.focus();
for (let i = 0; i < url.length; ++i)
EventUtils.synthesizeKey(url[i], {}, dialog);
EventUtils.synthesizeKey("VK_RETURN", {}, dialog);
});
}, dialog);
}, false);
break;
@ -100,6 +101,7 @@ function test() {
gPrefService.clearUserPref("general.open_location.last_url");
if (gPrefService.prefHasUserValue("general.open_location.last_window_choice"))
gPrefService.clearUserPref("general.open_location.last_window_choice");
gPrefService.clearUserPref("browser.privatebrowsing.keep_current_session");
finish();
});
});