services/sync/tests/tps/test_bug546807.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.

     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  */
    10 EnableEngines(["tabs"]);
    12 var phases = { "phase1": "profile1",
    13                "phase2": "profile2"};
    15 /*
    16  * Tabs data
    17  */
    19 var tabs1 = [
    20   { uri: "about:config",
    21     profile: "profile1"
    22   },
    23   { uri: "about:credits",
    24     profile: "profile1"
    25   },
    26   { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>",
    27     title: "Apple",
    28     profile: "profile1"
    29   }
    30 ];
    32 var tabs_absent = [
    33   { uri: "about:config",
    34     profile: "profile1"
    35   },
    36   { uri: "about:credits",
    37     profile: "profile1"
    38   },
    39 ];
    41 /*
    42  * Test phases
    43  */
    45 Phase('phase1', [
    46   [Tabs.add, tabs1],
    47   [Sync]
    48 ]);
    50 Phase('phase2', [
    51   [Sync],
    52   [Tabs.verifyNot, tabs_absent]
    53 ]);

mercurial