diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js')
-rw-r--r-- | browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js b/browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js deleted file mode 100644 index 8e1950291..000000000 --- a/browser/components/customizableui/test/browser_customizemode_contextmenu_menubuttonstate.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -add_task(function*() { - ok(!PanelUI.menuButton.hasAttribute("open"), "Menu button should not be 'pressed' outside customize mode"); - yield startCustomizing(); - - is(PanelUI.menuButton.getAttribute("open"), "true", "Menu button should be 'pressed' when in customize mode"); - - let contextMenu = document.getElementById("customizationPanelItemContextMenu"); - let shownPromise = popupShown(contextMenu); - let newWindowButton = document.getElementById("wrapper-new-window-button"); - EventUtils.synthesizeMouse(newWindowButton, 2, 2, {type: "contextmenu", button: 2}); - yield shownPromise; - is(PanelUI.menuButton.getAttribute("open"), "true", "Menu button should be 'pressed' when in customize mode after opening a context menu"); - - let hiddenContextPromise = popupHidden(contextMenu); - contextMenu.hidePopup(); - yield hiddenContextPromise; - is(PanelUI.menuButton.getAttribute("open"), "true", "Menu button should be 'pressed' when in customize mode after hiding a context menu"); - yield endCustomizing(); - - ok(!PanelUI.menuButton.hasAttribute("open"), "Menu button should not be 'pressed' after ending customize mode"); -}); - |