michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // bug 558077 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: "phase3": "profile1"}; michael@0: michael@0: var bookmarks_initial_1 = { michael@0: "menu": [ michael@0: { folder: "aaa", michael@0: description: "foo" michael@0: }, michael@0: { uri: "http://www.mozilla.com" michael@0: } michael@0: ], michael@0: "menu/aaa": [ michael@0: { uri: "http://www.yahoo.com", michael@0: title: "testing Yahoo" michael@0: }, michael@0: { uri: "http://www.google.com", michael@0: title: "testing Google" michael@0: } michael@0: ] michael@0: }; michael@0: michael@0: var bookmarks_initial_2 = { michael@0: "menu": [ michael@0: { folder: "aaa", michael@0: description: "bar" michael@0: }, michael@0: { uri: "http://www.mozilla.com" michael@0: } michael@0: ], michael@0: "menu/aaa": [ michael@0: { uri: "http://bugzilla.mozilla.org/show_bug.cgi?id=%s", michael@0: title: "Bugzilla" michael@0: }, michael@0: { uri: "http://www.apple.com", michael@0: tags: [ "apple" ] michael@0: } michael@0: ] michael@0: }; michael@0: michael@0: Phase('phase1', [ michael@0: [Bookmarks.add, bookmarks_initial_1], michael@0: [Sync] michael@0: ]); michael@0: michael@0: Phase('phase2', [ michael@0: [Sync], michael@0: [Bookmarks.verify, bookmarks_initial_1], michael@0: [Bookmarks.add, bookmarks_initial_2], michael@0: [Sync] michael@0: ]); michael@0: michael@0: Phase('phase3', [ michael@0: [Sync], michael@0: // XXX [Bookmarks.verify, bookmarks_initial_1], michael@0: [Bookmarks.verify, bookmarks_initial_2] michael@0: ]);