mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-02-08 01:31:00 +00:00
29 lines
662 B
HTML
29 lines
662 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script src="network.js"></script>
|
|
</head>
|
|
<body>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
if ("nsINetworkInterfaceListService" in SpecialPowers.Ci) {
|
|
getNetworkUtils().tearDownNetwork()
|
|
.then(() =>
|
|
ok(true, 'Successfully teared down network interface'),
|
|
() =>
|
|
ok(true, 'Network interface was in down state already'))
|
|
.then(() => SimpleTest.finish());
|
|
} else {
|
|
ok(true, 'No need to cleanup network interface');
|
|
SimpleTest.finish();
|
|
}
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|