services/sync/tests/tps/test_bookmarks_in_same_named_folder.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:93c075ead293
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3
4 // bug 558077
5
6 /*
7 * The list of phases mapped to their corresponding profiles. The object
8 * here must be in strict JSON format, as it will get parsed by the Python
9 * testrunner (no single quotes, extra comma's, etc).
10 */
11 EnableEngines(["bookmarks"]);
12
13 var phases = { "phase1": "profile1",
14 "phase2": "profile2",
15 "phase3": "profile1"};
16
17 var bookmarks_initial_1 = {
18 "menu": [
19 { folder: "aaa",
20 description: "foo"
21 },
22 { uri: "http://www.mozilla.com"
23 }
24 ],
25 "menu/aaa": [
26 { uri: "http://www.yahoo.com",
27 title: "testing Yahoo"
28 },
29 { uri: "http://www.google.com",
30 title: "testing Google"
31 }
32 ]
33 };
34
35 var bookmarks_initial_2 = {
36 "menu": [
37 { folder: "aaa",
38 description: "bar"
39 },
40 { uri: "http://www.mozilla.com"
41 }
42 ],
43 "menu/aaa": [
44 { uri: "http://bugzilla.mozilla.org/show_bug.cgi?id=%s",
45 title: "Bugzilla"
46 },
47 { uri: "http://www.apple.com",
48 tags: [ "apple" ]
49 }
50 ]
51 };
52
53 Phase('phase1', [
54 [Bookmarks.add, bookmarks_initial_1],
55 [Sync]
56 ]);
57
58 Phase('phase2', [
59 [Sync],
60 [Bookmarks.verify, bookmarks_initial_1],
61 [Bookmarks.add, bookmarks_initial_2],
62 [Sync]
63 ]);
64
65 Phase('phase3', [
66 [Sync],
67 // XXX [Bookmarks.verify, bookmarks_initial_1],
68 [Bookmarks.verify, bookmarks_initial_2]
69 ]);

mercurial