From 9823f4ce09824dd1508d45944d64d18decabfcbd Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 21 Apr 2015 08:09:07 -0600 Subject: [PATCH] Fix legacy event spec for scheduler change --- spec/text-editor-component-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index 769ce424f..955504319 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -2624,7 +2624,7 @@ describe "TextEditorComponent", -> expect(componentNode.querySelector('.placeholder-text')).toBeNull() describe "legacy editor compatibility", -> - it "triggers the screen-lines-changed event before the editor:display-update event", -> + it "triggers the screen-lines-changed event before the editor:display-updated event", -> editor.setSoftWrapped(true) callingOrder = [] @@ -2633,7 +2633,7 @@ describe "TextEditorComponent", -> editor.insertText("HELLO! HELLO!\n HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! HELLO! ") nextAnimationFrame() - expect(callingOrder).toEqual ['screen-lines-changed', 'editor:display-updated'] + expect(callingOrder).toEqual ['screen-lines-changed', 'editor:display-updated', 'editor:display-updated'] it "works with the ::setEditorHeightInLines and ::setEditorWidthInChars helpers", -> setEditorHeightInLines(wrapperView, 7)