test_dm_getDownload(dl); 
    observe: function(aSubject, aTopic, aData) {      var dl = aSubject.QueryInterface(Ci.nsIDownload);      switch (aTopic) {        case "dl-start":          do_check_eq(nsIDownloadManager.DOWNLOAD_DOWNLOADING, dl.state);          do_test_pending();          break;        case "dl-failed":          do_check_eq(nsIDownloadManager.DOWNLOAD_FAILED, dl.state);          do_check_true(dm.canCleanUp);          do_test_finished();          break;        case "dl-cancel":          do_check_eq(nsIDownloadManager.DOWNLOAD_CANCELED, dl.state);          do_check_true(dm.canCleanUp);          do_test_finished();          break;        case "dl-done":          dm.removeDownload(dl.id);          var stmt = dm.DBConnection.createStatement("SELECT COUNT(*) " +                                                     "FROM moz_downloads " +                                                     "WHERE id = ?1");          stmt.bindInt32Parameter(0, dl.id);          stmt.executeStep();          do_check_eq(0, stmt.getInt32(0));          stmt.reset();          do_check_eq(nsIDownloadManager.DOWNLOAD_FINISHED, dl.state);          do_check_true(dm.canCleanUp);          do_test_finished();          break;      };    }
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/655eb4d7e7263bc0c53df585248eee989bde3eee/test_download_manager.js/buggy/toolkit/components/downloads/test/unit/test_download_manager.js