services/sync/tests/tps/test_bug546807.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/services/sync/tests/tps/test_bug546807.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +
     1.7 +/*
     1.8 + * The list of phases mapped to their corresponding profiles.  The object
     1.9 + * here must be in strict JSON format, as it will get parsed by the Python
    1.10 + * testrunner (no single quotes, extra comma's, etc).
    1.11 + */
    1.12 +
    1.13 +EnableEngines(["tabs"]);
    1.14 +
    1.15 +var phases = { "phase1": "profile1",
    1.16 +               "phase2": "profile2"};
    1.17 +
    1.18 +/*
    1.19 + * Tabs data
    1.20 + */
    1.21 +
    1.22 +var tabs1 = [
    1.23 +  { uri: "about:config",
    1.24 +    profile: "profile1"
    1.25 +  },
    1.26 +  { uri: "about:credits",
    1.27 +    profile: "profile1"
    1.28 +  },
    1.29 +  { uri: "data:text/html,<html><head><title>Apple</title></head><body>Apple</body></html>",
    1.30 +    title: "Apple",
    1.31 +    profile: "profile1"
    1.32 +  }
    1.33 +];
    1.34 +
    1.35 +var tabs_absent = [
    1.36 +  { uri: "about:config",
    1.37 +    profile: "profile1"
    1.38 +  },
    1.39 +  { uri: "about:credits",
    1.40 +    profile: "profile1"
    1.41 +  },
    1.42 +];
    1.43 +
    1.44 +/*
    1.45 + * Test phases
    1.46 + */
    1.47 +
    1.48 +Phase('phase1', [
    1.49 +  [Tabs.add, tabs1],
    1.50 +  [Sync]
    1.51 +]);
    1.52 +
    1.53 +Phase('phase2', [
    1.54 +  [Sync],
    1.55 +  [Tabs.verifyNot, tabs_absent]
    1.56 +]);
    1.57 +

mercurial