michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: const NOTIFICATION = "sessionstore-browser-state-restored"; michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: michael@0: function observe(subject, topic, data) { michael@0: if (NOTIFICATION == topic) { michael@0: finish(); michael@0: ok(true, "TOPIC received"); michael@0: } michael@0: } michael@0: michael@0: Services.obs.addObserver(observe, NOTIFICATION, false); michael@0: registerCleanupFunction(function () { michael@0: Services.obs.removeObserver(observe, NOTIFICATION); michael@0: }); michael@0: michael@0: ss.setBrowserState(JSON.stringify({ windows: [] })); michael@0: }