   test "formatStrikeThrough", (expectDocument) ->
     insertString("abc")
     getComposition().setSelectedRange([1, 2])
-    performInputTypeUsingExecCommand("strikeThrough", inputType: "formatStrikeThrough")
-    defer ->
+    performInputTypeUsingExecCommand "strikeThrough", inputType: "formatStrikeThrough", ->
       assert.textAttributes([0, 1], {})
       assert.textAttributes([1, 2], strike: true)
       assert.textAttributes([2, 3], {})

  test "insertLineBreak", (expectDocument) ->
    clickToolbarButton attribute: "quote", ->
      insertString("abc")
      performInputTypeUsingExecCommand("insertLineBreak", inputType: "insertLineBreak")
      defer ->
        performInputTypeUsingExecCommand("insertLineBreak", inputType: "insertLineBreak")
        defer ->
          assert.blockAttributes([0, 6], ["quote"])
          expectDocument("abc\n\n\n")

  test "insertParagraph", (expectDocument) ->
    clickToolbarButton attribute: "quote", ->
      insertString("abc")
      performInputTypeUsingExecCommand("insertParagraph", inputType: "insertParagraph")
      defer ->
        performInputTypeUsingExecCommand("insertParagraph", inputType: "insertParagraph")
        defer ->
          assert.blockAttributes([0, 4], ["quote"])
          assert.blockAttributes([4, 5], [])
          expectDocument("abc\n\n")

  test "formatBold", (expectDocument) ->
    insertString("abc")
    getComposition().setSelectedRange([1, 2])
    performInputTypeUsingExecCommand "bold", inputType: "formatBold", ->
      assert.textAttributes([0, 1], {})
      assert.textAttributes([1, 2], bold: true)
      assert.textAttributes([2, 3], {})
