Closed Bug 713294 Opened 12 years ago Closed 12 years ago

send quit-application in test_privatebrowsing_downloadLastDir_c.js

Categories

(Toolkit :: Downloads API, defect)

12 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: espindola, Assigned: espindola)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 584119 [details] [diff] [review]
send quit-application in test_privatebrowsing_downloadLastDir_c.js

Review of attachment 584119 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/content/tests/unit/test_privatebrowsing_downloadLastDir_c.js
@@ +154,5 @@
>  
>    // cleanup
> +  let obsSvc = Components.classes["@mozilla.org/observer-service;1"].
> +    getService(Components.interfaces.nsIObserverService);
> +  obsSvc.notifyObservers(null, "quit-application", null);

you can use Cc and Ci in this test

Cc["@mozilla.org/observer-service;1"]
  .getService(Ci.nsIObserverService)
  .notifyObservers(null, "quit-application", null);
Attachment #584119 - Flags: review?(mak77) → review+
https://hg.mozilla.org/mozilla-central/rev/cc8c5e6dad1e
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.