     it "allows multiple space-delimited decoration classes", ->
       decoration.setProperties(type: 'highlight', class: 'foo bar')
       nextAnimationFrame()
-      expect(componentNode.querySelectorAll('.foo.bar').length).toBe 1
+      expect(componentNode.querySelectorAll('.foo.bar').length).toBe 2
       decoration.setProperties(type: 'highlight', class: 'bar baz')
       nextAnimationFrame()
-      expect(componentNode.querySelectorAll('.bar.baz').length).toBe 1
+      expect(componentNode.querySelectorAll('.bar.baz').length).toBe 2
 
     it "renders classes on the regions directly if 'deprecatedRegionClass' option is defined", ->
       decoration = editor.decorateMarker(marker, type: 'highlight', class: 'test-highlight', deprecatedRegionClass: 'test-highlight-region')

        regionStyle = componentNode.querySelector('.test-highlight .region').style
        originalTop = parseInt(regionStyle.top)

        editor.getBuffer().insert([0, 0], '\n')
        nextAnimationFrame()

        regionStyle = componentNode.querySelector('.test-highlight .region').style
        newTop = parseInt(regionStyle.top)

        expect(newTop).toBe originalTop + lineHeightInPixels

      it "moves rendered highlights when the marker is manually moved", ->
        regionStyle = componentNode.querySelector('.test-highlight .region').style

      expect(tilesNodes.length).toBe(3)

      expect(tilesNodes[0].style['-webkit-transform']).toBe "translate3d(0px, -5px, 0px)"
      expect(tilesNodes[0].querySelectorAll(".line").length).toBe(tileSize)
      expectTileContainsRow(tilesNodes[0], 3, top: 0 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[0], 4, top: 1 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[0], 5, top: 2 * lineHeightInPixels)

      expect(tilesNodes[1].style['-webkit-transform']).toBe "translate3d(0px, #{1 * tileHeight - 5}px, 0px)"
      expect(tilesNodes[1].querySelectorAll(".line").length).toBe(tileSize)
      expectTileContainsRow(tilesNodes[1], 6, top: 0 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[1], 7, top: 1 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[1], 8, top: 2 * lineHeightInPixels)

      expect(tilesNodes[2].style['-webkit-transform']).toBe "translate3d(0px, #{2 * tileHeight - 5}px, 0px)"
      expect(tilesNodes[2].querySelectorAll(".line").length).toBe(tileSize)
      expectTileContainsRow(tilesNodes[2], 9, top: 0 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[2], 10, top: 1 * lineHeightInPixels)
      expectTileContainsRow(tilesNodes[2], 11, top: 2 * lineHeightInPixels)
