         buffer.insert([2, 0], "hello\nworld\n")
 
         line1 = editor.tokenizedLineForScreenRow(1)
-        expectValues presenter.state.content.lines[line1.id], {
+        expectValues lineStateForScreenRow(presenter, 1), {
           screenRow: 1
           text: line1.text
           tokens: line1.tokens

        presenter.setScrollTop(25)

        line0 = editor.tokenizedLineForScreenRow(0)
        expect(presenter.state.content.lines[line0.id]).toBeUndefined()

        line1 = editor.tokenizedLineForScreenRow(1)
        expectValues presenter.state.content.lines[line1.id], {
          screenRow: 1
          text: line1.text
          tokens: line1.tokens

        }

        line4 = editor.tokenizedLineForScreenRow(4)
        expectValues lineStateForScreenRow(presenter, 4), {
          screenRow: 4
          text: line4.text
          tokens: line4.tokens
          top: 10 * 4
        }

        line5 = editor.tokenizedLineForScreenRow(5)
        expectValues lineStateForScreenRow(presenter, 5), {
          screenRow: 5
          text: line5.text
          tokens: line5.tokens
          top: 10 * 5
        }

    describe "when ::lineHeight changes", ->
