1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 let addonbar = document.getElementById("addon-bar");
7 ok(addonbar.collapsed, "addon bar is collapsed by default");
10 EventUtils.synthesizeKey("/", { accelKey: true }, window);
11 ok(!addonbar.collapsed, "addon bar is not collapsed after toggle");
13 // hide the add-on bar
14 EventUtils.synthesizeKey("/", { accelKey: true }, window);
16 // confirm addon bar is closed
17 ok(addonbar.collapsed, "addon bar is collapsed after toggle");