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