test_bug556509.js (1023B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 EnableEngines(["bookmarks"]); 5 6 /* 7 * The list of phases mapped to their corresponding profiles. The object 8 * here must be in JSON format as it will get parsed by the Python 9 * testrunner. It is parsed by the YAML package, so it relatively flexible. 10 */ 11 var phases = { phase1: "profile1", phase2: "profile2" }; 12 13 // the initial list of bookmarks to add to the browser 14 var bookmarks_initial = { 15 menu: [{ folder: "testfolder", description: "it's just me, a test folder" }], 16 "menu/testfolder": [{ uri: "http://www.mozilla.com", title: "Mozilla" }], 17 }; 18 19 /* 20 * Test phases 21 */ 22 23 // Add a bookmark folder which has a description, and sync. 24 Phase("phase1", [ 25 [Bookmarks.add, bookmarks_initial], 26 [Bookmarks.verify, bookmarks_initial], 27 [Sync], 28 ]); 29 30 // Sync to profile2 and verify that the bookmark folder is created, along 31 // with its description. 32 Phase("phase2", [[Sync], [Bookmarks.verify, bookmarks_initial]]);