bug 841350 - register pageshow handler earlier in browser.js r=ttaubert
[gecko.git] / browser / base / content / test / browser_addon_bar_shortcut.js
blob847f967214c59f1245639f090afed6b64149568a
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/. */
5 function test() {
6   let addonbar = document.getElementById("addon-bar");
7   ok(addonbar.collapsed, "addon bar is collapsed by default");
9   // show the add-on bar
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");