1
0
Fork 0
firefox/netwerk/test/unit/test_offline_status.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
415 B
JavaScript

"use strict";
function run_test() {
try {
var linkService = Cc[
"@mozilla.org/network/network-link-service;1"
].getService(Ci.nsINetworkLinkService);
// The offline status should depends on the link status
Assert.notEqual(Services.io.offline, linkService.isLinkUp);
} catch (e) {
// The network link service might not be available
Assert.equal(Services.io.offline, false);
}
}