       [workspace, editor, editor2, events, inputElement, input2Element] = []
 
       beforeEach ->
-        workspace = appendContent $$ ->
-          @div class: 'workspace', ->
-            @div class: 'editor', ->
-              @input class: 'input', type: 'text'
-            @div class: 'editor2', ->
-              @input class: 'input2', type: 'text'
+        workspace = appendContent($$(->
+          @div { 'class': 'workspace' }, ->
+            @div { 'class': 'editor' }, ->
+              @input
+                'class': 'input'
+                type: 'text'
+            @div { 'class': 'editor2' }, ->
+              @input
+                'class': 'input2'
+                type: 'text'
+        ))
         editor = workspace.firstChild
         editor2 = editor.nextSibling
         inputElement = document.querySelector('.input')

          keymapManager.onDidReloadKeymap -> reloaded = true

          afterWaiting = ->
            assert(!reloaded)

            # Can start watching again after cancelling
            keymapManager.loadKeymap(keymapFilePath, watch: true)

      assert.deepEqual(events, ['command'])

    it "allows solo modifier-keys to be bound", ->
      element = $$(->
        @div 'class': 'a'
      )
      keymapManager.add 'test', '.a': 'ctrl': 'command'
      events = []
      element.addEventListener 'command', -> events.push('command')
