   @testPreloadAndOpen: () ->
 
     andOpen = () ->
-      alert "It's preloaded, now opening it."
+      navigator.notification.alert "It's preloaded, now opening it."
 
       webView.location = null   # make sure that it has no location
 

    steroids.view.updateKeyboard {
      accessoryBarEnabled:true
    }, {
      onSuccess: -> alert "keyboardc accesssory enabled"
    }

  @testDisableKeyboardAccessory: () ->
    steroids.view.updateKeyboard {
      accessoryBarEnabled:false
    }, {
      onSuccess: -> alert "keyboardy accesssory disabled"
    }

  @testKeyboardAccessoryWithEmptyParams: () ->
    steroids.view.updateKeyboard null, {
      onSuccess: -> alert "updateKeyboard called with no parameters (no change)"
    }

  @testPreloadViaArray: () ->

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

    navigator.notification.alert "event listener added"

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

    navigator.notification.alert "event listener added"

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

    navigator.notification.alert "event listener added"


  @testOffAllEvents: ->
