michael@0: function run_test() { michael@0: var ioService = Components.classes["@mozilla.org/network/io-service;1"] michael@0: .getService(Components.interfaces.nsIIOService); michael@0: michael@0: try { michael@0: var linkService = Components.classes["@mozilla.org/network/network-link-service;1"] michael@0: .getService(Components.interfaces.nsINetworkLinkService); michael@0: michael@0: // The offline status should depends on the link status michael@0: do_check_neq(ioService.offline, linkService.isLinkUp); michael@0: } catch (e) { michael@0: // The network link service might not be available michael@0: do_check_eq(ioService.offline, false); michael@0: } michael@0: }