Bug 631956 - Intermittent browser_522545.js | sessionstore got correct userTypedValue; r=froydnj

This commit is contained in:
Tim Taubert 2012-07-26 15:20:28 +02:00
parent ac06b3a3f7
commit 059ec2c88f

View File

@ -198,6 +198,9 @@ function test() {
event.initEvent("input", true, false); event.initEvent("input", true, false);
gURLBar.dispatchEvent(event); gURLBar.dispatchEvent(event);
browser.addEventListener("load", function onLoad() {
browser.removeEventListener("load", onLoad, true);
executeSoon(function () { executeSoon(function () {
is(browser.userTypedValue, "example.org", is(browser.userTypedValue, "example.org",
"userTypedValue was set when changing gURLBar.value"); "userTypedValue was set when changing gURLBar.value");
@ -212,6 +215,7 @@ function test() {
"sessionstore got correct userTypedClear"); "sessionstore got correct userTypedClear");
runNextTest(); runNextTest();
}); });
}, true);
}); });
} }