 
 
   @testShowParamsWhenNone: () ->
-    alert JSON.stringify(steroids.view.params)
+    navigator.notification.alert JSON.stringify(steroids.view.params)
 
   @testParamsInFileURL: () ->
     fileURLWebView = new steroids.views.WebView "file://#{steroids.app.absolutePath}/views/webview/params.html"

  #event tests
  @testCreatedEvent: ->
    eventHandler = steroids.view.on 'created', (event) ->
      alert "created event -> eventName: #{event.name} webview.location: #{event.webview.location}"

    alert "event listener added"

  @testPreloadedEvent: ->
    eventHandler = steroids.view.on 'preloaded', (event) ->
      alert "preloaded event -> eventName: #{event.name} webview.location: #{event.webview.location}"

    alert "event listener added"

  @testUnloadedEvent: ->
    eventHandler = steroids.view.on 'unloaded', (event) ->
      alert "unloaded event -> eventName: #{event.name} webview.location: #{event.webview.location}"

    alert "event listener added"


  @testOffAllEvents: ->

    steroids.view.off 'preloaded'
    steroids.view.off 'unloaded'

    navigator.notification.alert "all event listeners removed"
