From 09efd15122784f58ec731401414b3662ae178ccd Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Mon, 4 Feb 2013 11:34:27 -0800 Subject: [PATCH] fix command pallete specs to reflect new classes --- .../command-palette/spec/command-palette-spec.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/packages/command-palette/spec/command-palette-spec.coffee b/src/packages/command-palette/spec/command-palette-spec.coffee index 2f62d1b7b..60e01efb2 100644 --- a/src/packages/command-palette/spec/command-palette-spec.coffee +++ b/src/packages/command-palette/spec/command-palette-spec.coffee @@ -16,15 +16,15 @@ describe "CommandPalette", -> afterEach -> rootView.remove() - describe "when command-palette:toggle is triggered on the root view", -> + fdescribe "when command-palette:toggle is triggered on the root view", -> it "shows a list of all valid command descriptions, names, and keybindings for the previously focused element", -> keyBindings = _.losslessInvert(keymap.bindingsForElement(rootView.getActiveEditor())) for eventName, description of rootView.getActiveEditor().events() eventLi = palette.list.children("[data-event-name='#{eventName}']") if description expect(eventLi).toExist() - expect(eventLi.find('.event-name')).toHaveText(eventName) - expect(eventLi.find('.event-description')).toHaveText(description) + expect(eventLi.find('.label')).toHaveText(description) + expect(eventLi.find('.label').attr('title')).toBe(eventName) for binding in keyBindings[eventName] ? [] expect(eventLi.find(".key-binding:contains(#{binding})")).toExist() else @@ -39,8 +39,8 @@ describe "CommandPalette", -> description = editorEvents[eventName] unless description if description expect(eventLi).toExist() - expect(eventLi.find('.event-name')).toHaveText(eventName) - expect(eventLi.find('.event-description')).toHaveText(description) + expect(eventLi.find('.label')).toHaveText(description) + expect(eventLi.find('.label').attr('title')).toBe(eventName) else expect(eventLi).not.toExist()