   s += '])'
   console.log s
 
+hasComputedAllScreenRows = (displayLayer) ->
+  displayLayer.indexedBufferRowCount is displayLayer.buffer.getLineCount()
+
 getComputedScreenLineCount = (displayLayer) ->
   displayLayer.displayIndex.getScreenLineCount() - 1


  expect(containingTags).toEqual([])

verifyPositionTranslations = (random, displayLayer) ->
  lineScreenStart = Point.ZERO
  lineBufferStart = Point.ZERO

  rowCount = getRandomScreenRowCount(random, displayLayer)
  for screenLine in displayLayer.buildSpatialScreenLines(0, Infinity, rowCount)
    tokenScreenStart = lineScreenStart
    tokenBufferStart = lineBufferStart

  expect(rightmostScreenPosition.column).toBe(maxLineLength)
  expect(longestScreenRows.has(rightmostScreenPosition.row)).toBe(true)

verifyScreenLineIds = (displayLayer, screenLinesById) ->
  for screenLine in displayLayer.getScreenLines(0, getComputedScreenLineCount(displayLayer))
    if screenLinesById.has(screenLine.id)
      expect(screenLinesById.get(screenLine.id)).toEqual(screenLine)
    else
