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
Родитель cbc6b76c9a
Коммит 966bef1734
1 изменённых файлов: 6 добавлений и 1 удалений

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

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