Bug 609931 - browser_awesomescreen.js test is timing out [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-11-05 18:49:35 +01:00
parent d9e701a62e
commit f03f2d0859

View File

@ -28,15 +28,16 @@ function runNextTest() {
gCurrentTest.run();
}
else {
BrowserUI.closeAutoComplete();
// Close the awesome panel just in case
BrowserUI.activePanel = null;
finish();
}
}
//------------------------------------------------------------------------------
// Case: Test awesome bar open attribute
// Case: Test awesome bar collapsed state
gTests.push({
desc: "Test awesome bar open attribute",
desc: "Test awesome bar collapsed state",
run: function() {
window.addEventListener("NavigationPanelShown", function(aEvent) {
@ -91,6 +92,9 @@ gTests.push({
is(awesomeHeader.hidden, false, "Awesome header should be visible");
BrowserUI._edit.addEventListener("onsearchbegin", function(aEvent) {
if (BrowserUI._edit.value == "")
return;
BrowserUI._edit.removeEventListener(aEvent.type, arguments.callee, true);
let awesomeHeader = document.getElementById("awesome-header");
is(awesomeHeader.hidden, true, "Awesome header should be hidden");