summaryrefslogtreecommitdiffstats
path: root/docshell/test/unit_ipc/test_pb_notification_ipc.js
diff options
context:
space:
mode:
Diffstat (limited to 'docshell/test/unit_ipc/test_pb_notification_ipc.js')
-rw-r--r--docshell/test/unit_ipc/test_pb_notification_ipc.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/docshell/test/unit_ipc/test_pb_notification_ipc.js b/docshell/test/unit_ipc/test_pb_notification_ipc.js
new file mode 100644
index 0000000000..ecb366a3e1
--- /dev/null
+++ b/docshell/test/unit_ipc/test_pb_notification_ipc.js
@@ -0,0 +1,15 @@
+function run_test() {
+ var notifications = 0;
+ var obs = {
+ observe(aSubject, aTopic, aData) {
+ Assert.equal(aTopic, "last-pb-context-exited");
+ notifications++;
+ },
+ };
+ Services.obs.addObserver(obs, "last-pb-context-exited");
+
+ run_test_in_child("../unit/test_pb_notification.js", function() {
+ Assert.equal(notifications, 1);
+ do_test_finished();
+ });
+}