Bug 1015494 - fix sidebar state at the end of the test, r=mconley

--HG--
extra : rebase_source : 377a22b5e2850786453fe9f600f57005c1756bed
This commit is contained in:
Gijs Kruitbosch 2014-05-26 21:12:57 +01:00
parent ce07827af2
commit 17fe4d3830

View File

@ -19,6 +19,11 @@ window.sawEvent = function(event, isattr) {
registerCleanupFunction(() => {
delete window.sawEvent;
// Ensure sidebar is hidden after each test:
if (!document.getElementById("sidebar-box").hidden) {
toggleSidebar("", false);
}
});
function checkExpectedEvents(expected) {
@ -84,7 +89,7 @@ add_task(function*() {
document.getElementById("customizationui-widget-panel").hidePopup();
yield subviewHiddenPromise;
yield resetCustomization();
return resetCustomization();
});
function add_sidebar_task(description, setup, teardown) {