From aa091a9d26959cc49fe156ede297b8a7697f674d Mon Sep 17 00:00:00 2001 From: shale Date: Tue, 14 Jul 2015 13:52:54 -0700 Subject: [PATCH] [Browse] Update tests Removed reference to destroy() in the context menu action test. #33, #47. --- .../test/actions/ContextMenuActionSpec.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/platform/representation/test/actions/ContextMenuActionSpec.js b/platform/representation/test/actions/ContextMenuActionSpec.js index 5cfdab1e17..73b877ddc3 100644 --- a/platform/representation/test/actions/ContextMenuActionSpec.js +++ b/platform/representation/test/actions/ContextMenuActionSpec.js @@ -135,23 +135,6 @@ define( // Listener should have been detached from body expect(mockBody.off).toHaveBeenCalled(); }); - - it("removes listeners from body if destroyed while menu is showing", function () { - // Show the menu - action.perform(); - - // Verify preconditions - expect(mockBody.off).not.toHaveBeenCalled(); - expect(mockMenu.remove).not.toHaveBeenCalled(); - - // Destroy the menu - action.destroy(); - - // Verify menu was removed and listener detached - expect(mockBody.off).toHaveBeenCalled(); - expect(mockMenu.remove).toHaveBeenCalled(); - }); - }); } ); \ No newline at end of file