michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /* michael@0: * The list of phases mapped to their corresponding profiles. The object michael@0: * here must be in strict JSON format, as it will get parsed by the Python michael@0: * testrunner (no single quotes, extra comma's, etc). michael@0: */ michael@0: EnableEngines(["bookmarks"]); michael@0: michael@0: var phases = { "phase1": "profile1", michael@0: "phase2": "profile2"}; michael@0: michael@0: michael@0: // the initial list of bookmarks to add to the browser michael@0: var bookmarks_initial = { michael@0: "menu": [ michael@0: { folder: "testfolder", michael@0: description: "it's just me, a test folder" michael@0: } michael@0: ], michael@0: "menu/testfolder": [ michael@0: { uri: "http://www.mozilla.com", michael@0: title: "Mozilla" michael@0: } michael@0: ] michael@0: }; michael@0: michael@0: /* michael@0: * Test phases michael@0: */ michael@0: michael@0: // Add a bookmark folder which has a description, and sync. michael@0: Phase('phase1', [ michael@0: [Bookmarks.add, bookmarks_initial], michael@0: [Bookmarks.verify, bookmarks_initial], michael@0: [Sync] michael@0: ]); michael@0: michael@0: // Sync to profile2 and verify that the bookmark folder is created, along michael@0: // with its description. michael@0: Phase('phase2', [ michael@0: [Sync], michael@0: [Bookmarks.verify, bookmarks_initial] michael@0: ]);