           expect(editor.getSelection().getBufferRange()).toEqual [[1, 12], [1, 27]]
           editor.trigger "emmet:select-previous-item"
           expect(editor.getSelection().getBufferRange()).toEqual [[1, 4], [1, 28]]
-          editor.trigger "emmet:select-previous-item"
-          expect(editor.getSelection().getBufferRange()).toEqual [[0, 0], [0, 4]]
 
         it "selects previous items via keybindings", ->
           editor.trigger keydownEvent(',', altKey: true, metaKey: true, target: editor[0])
+          expect(editor.getSelection().getBufferRange()).toEqual [[2, 4], [2, 46]]
+          editor.trigger keydownEvent(',', altKey: true, metaKey: true, target: editor[0])
           expect(editor.getSelection().getBufferRange()).toEqual [[1, 22], [1, 27]]
           editor.trigger keydownEvent(',', altKey: true, metaKey: true, target: editor[0])
           expect(editor.getSelection().getBufferRange()).toEqual [[1, 16], [1, 21]]


        it "selects previous items via commands", ->
          editor.trigger "emmet:select-previous-item"
          expect(editor.getSelection().getBufferRange()).toEqual [[1, 22], [1, 27]]
          editor.trigger "emmet:select-previous-item"
          expect(editor.getSelection().getBufferRange()).toEqual [[1, 16], [1, 21]]

          expect(editor.getSelection().getBufferRange()).toEqual [[1, 12], [1, 27]]
          editor.trigger keydownEvent(',', altKey: true, metaKey: true, target: editor[0])
          expect(editor.getSelection().getBufferRange()).toEqual [[1, 4], [1, 28]]

  describe "emmet:reflect-css-value", ->
    reflection = null

    beforeEach ->
      workspaceView.openSync(Path.join(__dirname, './fixtures/reflect-css-value/before/reflect-css-value.css'))
      editor = workspaceView.getActiveView()
      editSession = workspaceView.getActivePaneItem()

      reflection = Fs.readFileSync(Path.join(__dirname, './fixtures/reflect-css-value/after/reflect-css-value.css'), "utf8")

    it "reflects CSS via commands", ->
      editor.setCursorBufferPosition([3, 32])
      editor.trigger "emmet:reflect-css-value"
      # editor.setCursorBufferPosition([9, 16])
      # editor.trigger "emmet:reflect-css-value"
      # expect(editor.getText()).toBe reflection

    it "reflects CSS via keybindings", ->
      editor.setCursorBufferPosition([3, 32])
      editor.trigger keydownEvent('r', shiftKey: true, metaKey: true, target: editor[0])
      # editor.setCursorBufferPosition([9, 16])
      # editor.trigger keydownEvent('r', shiftKey: true, metaKey: true, target: editor[0])
      # expect(editor.getText()).toBe reflection

  describe "emmet:encode-decode-data-url", ->
    encoded = null
