Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 // bug 558077
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"]);
13 var phases = { "phase1": "profile1",
14 "phase2": "profile2",
15 "phase3": "profile1"};
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 };
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 };
53 Phase('phase1', [
54 [Bookmarks.add, bookmarks_initial_1],
55 [Sync]
56 ]);
58 Phase('phase2', [
59 [Sync],
60 [Bookmarks.verify, bookmarks_initial_1],
61 [Bookmarks.add, bookmarks_initial_2],
62 [Sync]
63 ]);
65 Phase('phase3', [
66 [Sync],
67 // XXX [Bookmarks.verify, bookmarks_initial_1],
68 [Bookmarks.verify, bookmarks_initial_2]
69 ]);