1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/media/tests/mochitest/test_zmedia_cleanup.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 + <head> 1.7 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.8 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + </head> 1.10 +<body> 1.11 +<pre id="test"> 1.12 +<script type="application/javascript"> 1.13 +SimpleTest.waitForExplicitFinish(); 1.14 + 1.15 +if ("nsINetworkInterfaceListService" in SpecialPowers.Ci) { 1.16 + var url = SimpleTest.getTestFileURL("NetworkPreparationChromeScript.js"); 1.17 + var script = SpecialPowers.loadChromeScript(url); 1.18 + script.addMessageListener('network-disabled', function (message) { 1.19 + ok(true, 'network-disabled'); 1.20 + script.destroy(); 1.21 + SimpleTest.finish(); 1.22 + }); 1.23 + script.sendAsyncMessage("network-cleanup", true); 1.24 +} else { 1.25 + ok(true, 'no need to cleanup network interface'); 1.26 + SimpleTest.finish(); 1.27 +} 1.28 + 1.29 +</script> 1.30 +</pre> 1.31 +</body> 1.32 +</html>