Wed, 31 Dec 2014 07:53:36 +0100
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 | /* |
michael@0 | 5 | * The list of phases mapped to their corresponding profiles. The object |
michael@0 | 6 | * here must be in strict JSON format, as it will get parsed by the Python |
michael@0 | 7 | * testrunner (no single quotes, extra comma's, etc). |
michael@0 | 8 | */ |
michael@0 | 9 | EnableEngines(["bookmarks"]); |
michael@0 | 10 | |
michael@0 | 11 | var phases = { "phase1": "profile1", |
michael@0 | 12 | "phase2": "profile2"}; |
michael@0 | 13 | |
michael@0 | 14 | |
michael@0 | 15 | // the initial list of bookmarks to add to the browser |
michael@0 | 16 | var bookmarks_initial = { |
michael@0 | 17 | "menu": [ |
michael@0 | 18 | { folder: "testfolder", |
michael@0 | 19 | description: "it's just me, a test folder" |
michael@0 | 20 | } |
michael@0 | 21 | ], |
michael@0 | 22 | "menu/testfolder": [ |
michael@0 | 23 | { uri: "http://www.mozilla.com", |
michael@0 | 24 | title: "Mozilla" |
michael@0 | 25 | } |
michael@0 | 26 | ] |
michael@0 | 27 | }; |
michael@0 | 28 | |
michael@0 | 29 | /* |
michael@0 | 30 | * Test phases |
michael@0 | 31 | */ |
michael@0 | 32 | |
michael@0 | 33 | // Add a bookmark folder which has a description, and sync. |
michael@0 | 34 | Phase('phase1', [ |
michael@0 | 35 | [Bookmarks.add, bookmarks_initial], |
michael@0 | 36 | [Bookmarks.verify, bookmarks_initial], |
michael@0 | 37 | [Sync] |
michael@0 | 38 | ]); |
michael@0 | 39 | |
michael@0 | 40 | // Sync to profile2 and verify that the bookmark folder is created, along |
michael@0 | 41 | // with its description. |
michael@0 | 42 | Phase('phase2', [ |
michael@0 | 43 | [Sync], |
michael@0 | 44 | [Bookmarks.verify, bookmarks_initial] |
michael@0 | 45 | ]); |