services/sync/tests/tps/test_bug556509.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     4 /*
     5  * The list of phases mapped to their corresponding profiles.  The object
     6  * here must be in strict JSON format, as it will get parsed by the Python
     7  * testrunner (no single quotes, extra comma's, etc).
     8  */
     9 EnableEngines(["bookmarks"]);
    11 var phases = { "phase1": "profile1",
    12                "phase2": "profile2"};
    15 // the initial list of bookmarks to add to the browser
    16 var bookmarks_initial = {
    17   "menu": [
    18     { folder: "testfolder",
    19       description: "it's just me, a test folder"
    20     }
    21   ],
    22   "menu/testfolder": [
    23     { uri: "http://www.mozilla.com",
    24       title: "Mozilla"
    25     }
    26   ]
    27 };
    29 /*
    30  * Test phases
    31  */
    33 // Add a bookmark folder which has a description, and sync.
    34 Phase('phase1', [
    35   [Bookmarks.add, bookmarks_initial],
    36   [Bookmarks.verify, bookmarks_initial],
    37   [Sync]
    38 ]);
    40 // Sync to profile2 and verify that the bookmark folder is created, along
    41 // with its description.
    42 Phase('phase2', [
    43   [Sync],
    44   [Bookmarks.verify, bookmarks_initial]
    45 ]);

mercurial