           duration: 0.5
     }, {
       onSuccess: success
+      onFailure: failure
     }
 
   @testUpdateWithSwingingDoor: ->
     success = ->
-      steroids.logger.log "SUCCESS"
+      steroids.logger.log "SUCCESS in changing drawer animation to SwingingDoor"
+    failure = ->
+      steroids.logger.log "FAILURE in testUpdateWithSwingingDoor"
 
     steroids.drawers.update {
       options:

      id: "center2"

  @testAddRightButton: ->
    rightDrawerBtn = new steroids.buttons.NavigationBarButton
    rightDrawerBtn.title = "==>"
    rightDrawerBtn.onTap = =>
      steroids.drawers.show

    steroids.drawers.update
      right: newDrawer
    ,
      # test should not pass
      onSuccess: failure
      onFailure: success



  @testShowPreloadedDrawerRight: ->
    success = ->
      steroids.logger.log "SUCCESS in updating preloaded view as right drawer"
    failure = ->
      steroids.logger.log "FAILED in testShowPreloadedDrawerRight"

    newDrawer = new steroids.views.WebView("views/drawers/extraDrawer.html")

