services/sync/tests/tps/test_bookmarks_in_same_named_folder.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

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

mercurial