   @testUpdateButtonsWithoutBackButton: ->
     button1 = new steroids.buttons.NavigationBarButton
     button1.title = "NEW RIGHT"
-    button1.onTap = => alert "NEW RIGHT BUTTON TAPPED"
+    button1.onTap = => notification "NEW RIGHT BUTTON TAPPED"
 
     button2 = new steroids.buttons.NavigationBarButton
     button2.imagePath = "/icons/pill@2x.png"
-    button2.onTap = => alert "LEFT BUTTON TAPPED"
+    button2.onTap = => notification "LEFT BUTTON TAPPED"
 
     steroids.view.navigationBar.update {
       overrideBackButton: true

    steroids.view.navigationBar.show {
      animated: true
    }, {
      onSuccess: -> alert "showed with animation"
      onFailure: -> alert "failed to show"
    }

  @testHide: ->
    steroids.view.navigationBar.hide {},
      onSuccess: -> alert "hided"
      onFailure: -> alert "failed to hide"

  @testShow: ->
    steroids.view.navigationBar.show {},
      onSuccess: -> alert "showed"
      onFailure: -> alert "failed to show"

  @testShowWithTitle: ->
    steroids.view.navigationBar.show {
      title: "Any title"
    },
      onSuccess: -> alert "showed with title"
      onFailure: -> alert "failed to show with title"

  @testShowWithTitleImagePath: ->
    steroids.view.navigationBar.show {
      titleImagePath: "/icons/pill@2x.png"
    },
    onSuccess: -> alert "showed with titleImagePath"
    onFailure: -> alert "failed to show with titleImagePath"

  @testSetButtonsWithOneRightButton: ->
    button = new steroids.buttons.NavigationBarButton
    button.title = "TEST"
    button.onTap = => alert "RIGHT BUTTON TAPPED"

    steroids.view.navigationBar.setButtons {
      right: [button]
    },
      onSuccess: => alert "buttons set"
      onFailure: => alert "failed to set buttons"

  @testSetButtonsWithManyButtons: (options={override:false})->
    button1 = new steroids.buttons.NavigationBarButton
    button1.title = "EKA"
    button1.onTap = => alert "EKA BUTTON TAPPED"

    button2 = new steroids.buttons.NavigationBarButton
    button2.title = "TOKA"
    button2.onTap = => alert "TOKA BUTTON TAPPED"

    button3 = new steroids.buttons.NavigationBarButton
    button3.title = "NoCB"

    button4 = new steroids.buttons.NavigationBarButton
    button4.imagePath = "/icons/pill@2x.png"
    button4.onTap = => alert "ICON BUTTON TAPPED"

    steroids.view.navigationBar.setButtons {
      overrideBackButton: options.override
      left: [button1, button2]
      right: [button3, button4]
    },
      onSuccess: => alert "many buttons set"
      onFailure: => alert "failed to set many buttons"

  @testSetButtonsWithManyButtonsWithoutBack: ->

        left: []
      }
    },
      onSuccess: -> notification "nav bar buttons updated"
      onFailure: -> alert "failed to update nav bar buttons"

  @testOverrideBackbuttonTrue: ->
    steroids.view.navigationBar.update {
      overrideBackButton: true
    },
      onSuccess: -> notification "nav bar buttons updated"

  @testOverrideBackbuttonFalse: ->
    steroids.view.navigationBar.update {
