mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 609931 - browser_awesomescreen.js test is timing out [r=mfinkle]
This commit is contained in:
parent
d9e701a62e
commit
f03f2d0859
@ -28,15 +28,16 @@ function runNextTest() {
|
|||||||
gCurrentTest.run();
|
gCurrentTest.run();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
BrowserUI.closeAutoComplete();
|
// Close the awesome panel just in case
|
||||||
|
BrowserUI.activePanel = null;
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Case: Test awesome bar open attribute
|
// Case: Test awesome bar collapsed state
|
||||||
gTests.push({
|
gTests.push({
|
||||||
desc: "Test awesome bar open attribute",
|
desc: "Test awesome bar collapsed state",
|
||||||
|
|
||||||
run: function() {
|
run: function() {
|
||||||
window.addEventListener("NavigationPanelShown", function(aEvent) {
|
window.addEventListener("NavigationPanelShown", function(aEvent) {
|
||||||
@ -91,6 +92,9 @@ gTests.push({
|
|||||||
is(awesomeHeader.hidden, false, "Awesome header should be visible");
|
is(awesomeHeader.hidden, false, "Awesome header should be visible");
|
||||||
|
|
||||||
BrowserUI._edit.addEventListener("onsearchbegin", function(aEvent) {
|
BrowserUI._edit.addEventListener("onsearchbegin", function(aEvent) {
|
||||||
|
if (BrowserUI._edit.value == "")
|
||||||
|
return;
|
||||||
|
|
||||||
BrowserUI._edit.removeEventListener(aEvent.type, arguments.callee, true);
|
BrowserUI._edit.removeEventListener(aEvent.type, arguments.callee, true);
|
||||||
let awesomeHeader = document.getElementById("awesome-header");
|
let awesomeHeader = document.getElementById("awesome-header");
|
||||||
is(awesomeHeader.hidden, true, "Awesome header should be hidden");
|
is(awesomeHeader.hidden, true, "Awesome header should be hidden");
|
||||||
|
Loading…
Reference in New Issue
Block a user