diff options
Diffstat (limited to 'docshell/test/unit_ipc')
-rw-r--r-- | docshell/test/unit_ipc/test_pb_notification_ipc.js | 15 | ||||
-rw-r--r-- | docshell/test/unit_ipc/xpcshell.toml | 8 |
2 files changed, 23 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..6408e7753e --- /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(); + }); +} diff --git a/docshell/test/unit_ipc/xpcshell.toml b/docshell/test/unit_ipc/xpcshell.toml new file mode 100644 index 0000000000..9ddc971a24 --- /dev/null +++ b/docshell/test/unit_ipc/xpcshell.toml @@ -0,0 +1,8 @@ +[DEFAULT] +head = "" +skip-if = ["os == 'android'"] + +["test_pb_notification_ipc.js"] +# Bug 751575: Perma-fails with: command timed out: 1200 seconds without output +skip-if = ["true"] + |