services/sync/tests/tps/test_bug556509.js

branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
equal deleted inserted replaced
-1:000000000000 0:4920b38f0691
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3
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"]);
10
11 var phases = { "phase1": "profile1",
12 "phase2": "profile2"};
13
14
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 };
28
29 /*
30 * Test phases
31 */
32
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 ]);
39
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 ]);

mercurial