MOB-297 Removed check for non network connection with navigator.connection object and added network connection check with an offline event instead.
MOB-297 Removed obsolete tests and added new test to check for network connection based on the offline event instead.
MOB-297 Reformatted code for added readability
Merge branch 'master' into MOB-297
Merge pull request #216 from pmampe/MOB-297

MOB-297