Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 /*
5 * The list of phases mapped to their corresponding profiles. The object
6 * here must be in strict JSON format, as it will get parsed by the Python
7 * testrunner (no single quotes, extra comma's, etc).
8 */
9 EnableEngines(["bookmarks"]);
11 var phases = { "phase1": "profile1",
12 "phase2": "profile2"};
15 // the initial list of bookmarks to add to the browser
16 var bookmarks_initial = {
17 "menu": [
18 { folder: "testfolder",
19 description: "it's just me, a test folder"
20 }
21 ],
22 "menu/testfolder": [
23 { uri: "http://www.mozilla.com",
24 title: "Mozilla"
25 }
26 ]
27 };
29 /*
30 * Test phases
31 */
33 // Add a bookmark folder which has a description, and sync.
34 Phase('phase1', [
35 [Bookmarks.add, bookmarks_initial],
36 [Bookmarks.verify, bookmarks_initial],
37 [Sync]
38 ]);
40 // Sync to profile2 and verify that the bookmark folder is created, along
41 // with its description.
42 Phase('phase2', [
43 [Sync],
44 [Bookmarks.verify, bookmarks_initial]
45 ]);