Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 </head>
7 <body>
8 <pre id="test">
9 <script type="application/javascript">
10 SimpleTest.waitForExplicitFinish();
12 if ("nsINetworkInterfaceListService" in SpecialPowers.Ci) {
13 var url = SimpleTest.getTestFileURL("NetworkPreparationChromeScript.js");
14 var script = SpecialPowers.loadChromeScript(url);
15 script.addMessageListener('network-disabled', function (message) {
16 ok(true, 'network-disabled');
17 script.destroy();
18 SimpleTest.finish();
19 });
20 script.sendAsyncMessage("network-cleanup", true);
21 } else {
22 ok(true, 'no need to cleanup network interface');
23 SimpleTest.finish();
24 }
26 </script>
27 </pre>
28 </body>
29 </html>