зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015494 - fix sidebar state at the end of the test, r=mconley
--HG-- extra : rebase_source : 377a22b5e2850786453fe9f600f57005c1756bed
This commit is contained in:
Родитель
cbc6b76c9a
Коммит
966bef1734
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче