rem: onStatusChange: function(a, b, c, d, e) { }, onLocationChange: function(a, b, c, d) { }, 
context: function run_test(){  // This test functionality only implemented on Windows.  // Is there a better way of doing this?  var httpPH = Cc["@mozilla.org/network/protocol;1?name=http"].               getService(Ci.nsIHttpProtocolHandler);  if (httpPH.platform != "Windows")    return;  // Don't finish until the download is finished  do_test_pending();  httpserv = new nsHttpServer();  httpserv.registerDirectory("/", dirSvc.get("ProfD", Ci.nsILocalFile));  httpserv.start(4444);  var listener = {    onDownloadStateChange: function test_401430_odsc(aState, aDownload) {      if (aDownload.state == Ci.nsIDownloadManager.DOWNLOAD_FINISHED) {        // Need to run this from a timeout, because the SHAddToRecentDocs call        // doesn't update the registry immediately.        do_timeout(1000, "checkResult();");      }    },    onStateChange: function(a, b, c, d, e) { },    onProgressChange: function(a, b, c, d, e, f, g) { },    onStatusChange: function(a, b, c, d, e) { },    onLocationChange: function(a, b, c, d) { },    onSecurityChange: function(a, b, c, d) { }  };  dm.addListener(listener);  dm.addListener(getDownloadListener());  var dl = addDownload(resultFileName);  cleanup();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/83ad46db2c5e5c573e41a141bdfd04f66cde4aa4/test_bug_401430.js/clean/toolkit/components/downloads/test/unit/test_bug_401430.js