nebulab-dropbox
Version:
Client library for the Dropbox API
16 lines (14 loc) • 384 B
text/coffeescript
runTests = ->
runner = null
runner = mocha.run()
runner.on 'end', ->
failures = || 0
total = || 0
image = new Image()
image.src = "/diediedie?failed=#{failures}&total=#{total}";
image.onload = ->
null
if window.cordova
document.addEventListener 'deviceready', runTests
else
window.addEventListener 'load', runTests