| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>HTML5 browser connection state</title> | |
| <script src="../test_bootstrap.js"></script> | |
| <script type="text/javascript"> | |
| goog.require('bot.connection'); | |
| goog.require('bot.html5'); | |
| goog.require('goog.testing.jsunit'); | |
| </script> | |
| <script type="text/javascript"> | |
| function testIsOnline() { | |
| if (!bot.html5.isSupported(bot.html5.API.BROWSER_CONNECTION)) { | |
| return; | |
| } | |
| // Requires the browser to be online | |
| assertEquals(true, bot.connection.isOnline()); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| </body> | |
| </html> | |