From c9db576a1c900fdd3ec8b2641934b15038dcf409 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Thu, 11 Oct 2012 17:17:40 -0700 Subject: [PATCH] Fix specs --- spec/app/editor-spec.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index e2fb5a703..d55d54d37 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -214,7 +214,7 @@ describe "Editor", -> expect(editor.lineElementForScreenRow(0).text()).toBe 'abc' editor.edit(otherEditSession) - expect(editor.lineElementForScreenRow(0).html()).toBe ' ' + expect(editor.lineElementForScreenRow(0).html()).toBe ' ' editor.insertText("def\n") expect(editor.lineElementForScreenRow(0).text()).toBe 'def' @@ -992,7 +992,7 @@ describe "Editor", -> # renders empty lines with a non breaking space expect(buffer.lineForRow(10)).toBe '' - expect(editor.renderedLines.find('.line:eq(10) span').html()).toBe ' ' + expect(editor.renderedLines.find('.line:eq(10)').html()).toBe ' ' it "syntax highlights code based on the file type", -> line0 = editor.renderedLines.find('.line:first') @@ -1198,7 +1198,7 @@ describe "Editor", -> editor.scrollTop(editor.lineHeight * 3.5) # first visible row will be 3, last will be 8 expect(editor.renderedLines.find('.line').length).toBe 10 expect(editor.renderedLines.find('.line:first').text()).toBe buffer.lineForRow(1) - expect(editor.renderedLines.find('.line:last span').html()).toBe ' ' # line 10 is blank + expect(editor.renderedLines.find('.line:last').html()).toBe ' ' # line 10 is blank expect(editor.gutter.find('.line-number:first').text()).toBe '2' expect(editor.gutter.find('.line-number:last').text()).toBe '11' @@ -1206,7 +1206,7 @@ describe "Editor", -> editor.scrollTop(editor.lineHeight * 5.5) # first visible row will be 5, last will be 10 expect(editor.renderedLines.find('.line').length).toBe 10 expect(editor.renderedLines.find('.line:first').text()).toBe buffer.lineForRow(1) - expect(editor.renderedLines.find('.line:last span').html()).toBe ' ' # line 10 is blank + expect(editor.renderedLines.find('.line:last').html()).toBe ' ' # line 10 is blank expect(editor.gutter.find('.line-number:first').text()).toBe '2' expect(editor.gutter.find('.line-number:last').text()).toBe '11' @@ -1218,7 +1218,7 @@ describe "Editor", -> editor.scrollTop(editor.lineHeight * 3.5) # first visible row will be 3, last will be 8 expect(editor.renderedLines.find('.line').length).toBe 10 expect(editor.renderedLines.find('.line:first').text()).toBe buffer.lineForRow(1) - expect(editor.renderedLines.find('.line:last span').html()).toBe ' ' # line 10 is blank + expect(editor.renderedLines.find('.line:last').html()).toBe ' ' # line 10 is blank editor.scrollTop(0) expect(editor.renderedLines.find('.line').length).toBe 8